home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1993-05-17 | 195.8 KB | [ONLN/HLX2] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Wed Apr 21 04:03:58 1993, modified Mon May 17 13:11:35 1993, creator 'HLX2', type 'ONLN', 197727 bytes "Developer Information" , at 0x304df 2451 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
100%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [ONLN] |
macFileCreator | [HLX2] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 15 44 65 76 65 6c 6f | 70 65 72 20 49 6e 66 6f |..Develo|per Info|
|00000010| 72 6d 61 74 69 6f 6e 00 | 00 00 00 00 00 00 00 00 |rmation.|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 4f 4e 4c 4e 48 4c 58 | 32 01 00 00 00 00 00 00 |.ONLNHLX|2.......|
|00000050| 00 00 00 00 03 04 5f 00 | 00 09 93 a7 fa b0 6e a8 |......_.|......n.|
|00000060| 1d 77 c7 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.w......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 c6 e6 00 00 |........|........|
|00000080| 43 6f 6d 70 61 74 69 62 | 69 6c 69 74 79 20 54 69 |Compatib|ility Ti|
|00000090| 70 73 20 66 6f 72 20 4d | 61 63 69 6e 74 6f 73 68 |ps for M|acintosh|
|000000a0| 20 41 70 70 6c 69 63 61 | 74 69 6f 6e 73 20 61 6e | Applica|tions an|
|000000b0| 64 20 74 68 65 20 4e 65 | 77 20 50 6f 73 74 73 63 |d the Ne|w Postsc|
|000000c0| 72 69 70 74 20 50 72 69 | 6e 74 65 72 20 44 72 69 |ript Pri|nter Dri|
|000000d0| 76 65 72 0d 44 52 41 46 | 54 0d 31 34 20 4f 63 74 |ver.DRAF|T.14 Oct|
|000000e0| 6f 62 65 72 20 31 39 39 | 32 0d 31 09 49 6e 74 72 |ober 199|2.1.Intr|
|000000f0| 6f 64 75 63 74 69 6f 6e | 0d 41 64 6f 62 65 20 53 |oduction|.Adobe S|
|00000100| 79 73 74 65 6d 73 20 61 | 6e 64 20 41 70 70 6c 65 |ystems a|nd Apple|
|00000110| 20 43 6f 6d 70 75 74 65 | 72 20 68 61 76 65 20 6a | Compute|r have j|
|00000120| 6f 69 6e 74 6c 79 20 64 | 65 76 65 6c 6f 70 65 64 |ointly d|eveloped|
|00000130| 20 61 20 6e 65 77 20 50 | 6f 73 74 53 63 72 69 70 | a new P|ostScrip|
|00000140| 74 20 70 72 69 6e 74 65 | 72 20 64 72 69 76 65 72 |t printe|r driver|
|00000150| 20 66 6f 72 20 4d 61 63 | 69 6e 74 6f 73 68 2e 20 | for Mac|intosh. |
|00000160| 20 54 68 69 73 20 64 72 | 69 76 65 72 2c 20 72 65 | This dr|iver, re|
|00000170| 66 65 72 65 64 20 74 6f | 20 68 65 72 65 20 61 73 |fered to| here as|
|00000180| 20 50 53 57 72 69 74 65 | 72 2c 20 69 73 20 61 20 | PSWrite|r, is a |
|00000190| 72 65 70 6c 61 63 65 6d | 65 6e 74 20 66 6f 72 20 |replacem|ent for |
|000001a0| 74 68 65 20 65 78 69 73 | 74 69 6e 67 20 41 70 70 |the exis|ting App|
|000001b0| 6c 65 20 4c 61 73 65 72 | 57 72 69 74 65 72 20 64 |le Laser|Writer d|
|000001c0| 72 69 76 65 72 2e 20 50 | 53 57 72 69 74 65 72 20 |river. P|SWriter |
|000001d0| 69 73 20 6e 6f 74 20 61 | 20 6d 6f 64 69 66 69 65 |is not a| modifie|
|000001e0| 64 20 4c 61 73 65 72 57 | 72 69 74 65 72 20 64 72 |d LaserW|riter dr|
|000001f0| 69 76 65 72 20 62 75 74 | 20 69 73 20 61 20 63 6f |iver but| is a co|
|00000200| 6d 70 6c 65 74 65 20 72 | 65 77 72 69 74 65 20 6f |mplete r|ewrite o|
|00000210| 66 20 74 68 65 20 4c 61 | 73 65 72 57 72 69 74 65 |f the La|serWrite|
|00000220| 72 20 64 72 69 76 65 72 | 2e 20 54 68 65 20 61 72 |r driver|. The ar|
|00000230| 63 68 69 74 65 63 74 75 | 72 65 20 61 6e 64 20 63 |chitectu|re and c|
|00000240| 6f 64 65 20 67 65 6e 65 | 72 61 74 69 6f 6e 20 73 |ode gene|ration s|
|00000250| 74 72 61 74 65 67 79 20 | 6f 66 20 50 53 57 72 69 |trategy |of PSWri|
|00000260| 74 65 72 20 69 73 20 73 | 69 67 6e 69 66 69 63 61 |ter is s|ignifica|
|00000270| 6e 74 6c 79 20 64 69 66 | 66 65 72 65 6e 74 20 74 |ntly dif|ferent t|
|00000280| 68 61 6e 20 74 68 65 20 | 65 78 69 73 74 69 6e 67 |han the |existing|
|00000290| 20 4c 61 73 65 72 57 72 | 69 74 65 72 20 64 72 69 | LaserWr|iter dri|
|000002a0| 76 65 72 20 61 6e 64 20 | 61 6c 6c 6f 77 73 20 66 |ver and |allows f|
|000002b0| 6f 72 20 74 68 65 20 67 | 65 6e 65 72 61 74 65 64 |or the g|enerated|
|000002c0| 20 50 6f 73 74 53 63 72 | 69 70 74 20 6c 61 6e 67 | PostScr|ipt lang|
|000002d0| 75 61 67 65 20 63 6f 64 | 65 20 74 6f 20 62 65 20 |uage cod|e to be |
|000002e0| 6d 6f 72 65 20 65 66 66 | 69 63 69 65 6e 74 20 61 |more eff|icient a|
|000002f0| 6e 64 20 63 6f 6e 66 6f | 72 6d 20 74 6f 20 63 6f |nd confo|rm to co|
|00000300| 6e 76 65 6e 74 69 6f 6e | 73 20 66 6f 72 20 73 74 |nvention|s for st|
|00000310| 72 75 63 74 75 72 65 64 | 20 50 6f 73 74 53 63 72 |ructured| PostScr|
|00000320| 69 70 74 20 6c 61 6e 67 | 75 61 67 65 20 63 6f 64 |ipt lang|uage cod|
|00000330| 65 2e 20 0d 54 68 69 73 | 20 74 65 63 68 6e 69 63 |e. .This| technic|
|00000340| 61 6c 20 6e 6f 74 65 20 | 69 73 20 69 6e 74 65 6e |al note |is inten|
|00000350| 64 65 64 20 74 6f 20 61 | 6c 65 72 74 20 61 70 70 |ded to a|lert app|
|00000360| 6c 69 63 61 74 69 6f 6e | 20 77 72 69 74 65 72 73 |lication| writers|
|00000370| 20 61 73 20 74 6f 20 74 | 68 65 20 64 69 66 66 65 | as to t|he diffe|
|00000380| 72 65 6e 63 65 73 20 62 | 65 74 77 65 65 6e 20 74 |rences b|etween t|
|00000390| 68 65 20 50 53 57 72 69 | 74 65 72 20 64 72 69 76 |he PSWri|ter driv|
|000003a0| 65 72 20 61 6e 64 20 74 | 68 65 20 65 78 69 73 74 |er and t|he exist|
|000003b0| 69 6e 67 20 41 70 70 6c | 65 20 4c 61 73 65 72 57 |ing Appl|e LaserW|
|000003c0| 72 69 74 65 72 20 64 72 | 69 76 65 72 20 28 72 65 |riter dr|iver (re|
|000003d0| 66 65 72 65 64 20 74 6f | 20 68 65 72 65 20 61 73 |fered to| here as|
|000003e0| 20 74 68 65 20 d4 6f 6c | 64 20 4c 61 73 65 72 57 | the .ol|d LaserW|
|000003f0| 72 69 74 65 72 20 64 72 | 69 76 65 72 d5 20 6d 65 |riter dr|iver. me|
|00000400| 61 6e 69 6e 67 20 61 6c | 6c 20 4c 61 73 65 72 57 |aning al|l LaserW|
|00000410| 72 69 74 65 72 20 64 72 | 69 76 65 72 73 20 70 72 |riter dr|ivers pr|
|00000420| 69 6f 72 20 74 6f 20 76 | 65 72 73 69 6f 6e 20 38 |ior to v|ersion 8|
|00000430| 2e 30 29 20 66 72 6f 6d | 20 74 68 65 20 76 69 65 |.0) from| the vie|
|00000440| 77 70 6f 69 6e 74 20 6f | 66 20 61 70 70 6c 69 63 |wpoint o|f applic|
|00000450| 61 74 69 6f 6e 20 77 72 | 69 74 65 72 73 2e 20 49 |ation wr|iters. I|
|00000460| 74 20 68 69 67 68 6c 69 | 67 68 74 73 20 61 72 65 |t highli|ghts are|
|00000470| 61 73 20 77 68 65 72 65 | 20 63 6f 6d 70 61 74 69 |as where| compati|
|00000480| 62 69 6c 69 74 79 20 69 | 73 73 75 65 73 20 65 78 |bility i|ssues ex|
|00000490| 69 73 74 20 61 6e 64 20 | 68 6f 77 20 64 65 76 65 |ist and |how deve|
|000004a0| 6c 6f 70 65 72 73 20 63 | 61 6e 20 61 76 6f 69 64 |lopers c|an avoid|
|000004b0| 20 63 6f 6d 70 61 74 69 | 62 69 6c 69 74 79 20 70 | compati|bility p|
|000004c0| 72 6f 62 6c 65 6d 73 2e | 20 4d 6f 73 74 20 6f 66 |roblems.| Most of|
|000004d0| 20 74 68 65 20 63 6f 6d | 70 61 74 69 62 69 6c 69 | the com|patibili|
|000004e0| 74 79 20 70 72 6f 62 6c | 65 6d 73 20 61 72 65 20 |ty probl|ems are |
|000004f0| 64 75 65 20 74 6f 20 74 | 65 63 68 6e 69 71 75 65 |due to t|echnique|
|00000500| 73 2c 20 75 73 65 64 20 | 62 79 20 61 70 70 6c 69 |s, used |by appli|
|00000510| 63 61 74 69 6f 6e 20 64 | 65 76 65 6c 6f 70 65 72 |cation d|eveloper|
|00000520| 73 2c 20 77 68 69 63 68 | 20 68 61 76 65 20 6c 6f |s, which| have lo|
|00000530| 6e 67 20 62 65 65 6e 20 | 64 69 73 63 6f 75 72 61 |ng been |discoura|
|00000540| 67 65 64 20 62 79 20 41 | 70 70 6c 65 2e 20 4f 74 |ged by A|pple. Ot|
|00000550| 68 65 72 20 61 72 65 61 | 73 20 61 72 65 20 6d 6f |her area|s are mo|
|00000560| 72 65 20 73 75 62 74 6c | 65 20 61 6e 64 20 61 70 |re subtl|e and ap|
|00000570| 70 6c 69 63 61 74 69 6f | 6e 20 77 72 69 74 65 72 |plicatio|n writer|
|00000580| 73 20 6d 61 79 20 6e 6f | 74 20 62 65 20 61 77 61 |s may no|t be awa|
|00000590| 72 65 20 6f 66 20 74 68 | 65 69 72 20 64 65 70 65 |re of th|eir depe|
|000005a0| 6e 64 65 6e 63 69 65 73 | 20 6f 6e 20 74 68 65 20 |ndencies| on the |
|000005b0| 6f 6c 64 20 41 70 70 6c | 65 20 4c 61 73 65 72 57 |old Appl|e LaserW|
|000005c0| 72 69 74 65 72 20 64 72 | 69 76 65 72 20 61 72 63 |riter dr|iver arc|
|000005d0| 68 69 74 65 63 74 75 72 | 65 2e 0d 31 2e 31 09 77 |hitectur|e..1.1.w|
|000005e0| 68 6f 20 73 68 6f 75 6c | 64 20 72 65 61 64 20 74 |ho shoul|d read t|
|000005f0| 68 69 73 20 64 6f 63 75 | 6d 65 6e 74 0d 4d 6f 73 |his docu|ment.Mos|
|00000600| 74 20 6f 66 20 74 68 65 | 20 63 6f 6e 74 65 6e 74 |t of the| content|
|00000610| 73 20 6f 66 20 74 68 69 | 73 20 64 6f 63 75 6d 65 |s of thi|s docume|
|00000620| 6e 74 20 61 72 65 20 69 | 6e 74 65 6e 64 65 64 20 |nt are i|ntended |
|00000630| 74 6f 20 61 69 64 20 61 | 70 70 6c 69 63 61 74 69 |to aid a|pplicati|
|00000640| 6f 6e 20 64 65 76 65 6c | 6f 70 65 72 73 20 77 68 |on devel|opers wh|
|00000650| 6f 20 67 65 6e 65 72 61 | 74 65 20 74 68 65 69 72 |o genera|te their|
|00000660| 20 6f 77 6e 20 63 75 73 | 74 6f 6d 20 50 6f 73 74 | own cus|tom Post|
|00000670| 53 63 72 69 70 74 20 6c | 61 6e 67 75 61 67 65 20 |Script l|anguage |
|00000680| 63 6f 64 65 20 76 69 61 | 20 6f 6e 65 20 6f 66 20 |code via| one of |
|00000690| 74 68 65 20 73 65 76 65 | 72 61 6c 20 6d 65 63 68 |the seve|ral mech|
|000006a0| 61 6e 69 73 6d 73 20 61 | 76 61 69 6c 61 62 6c 65 |anisms a|vailable|
|000006b0| 20 74 6f 20 4d 61 63 69 | 6e 74 6f 73 68 20 61 70 | to Maci|ntosh ap|
|000006c0| 70 6c 69 63 61 74 69 6f | 6e 73 2e 20 54 79 70 69 |plicatio|ns. Typi|
|000006d0| 63 61 6c 6c 79 20 74 68 | 65 73 65 20 61 72 65 20 |cally th|ese are |
|000006e0| 74 68 65 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 |the appl|ication |
|000006f0| 64 65 76 65 6c 6f 70 65 | 72 73 20 77 68 69 63 68 |develope|rs which|
|00000700| 20 65 69 74 68 65 72 20 | 6b 6e 6f 77 69 6e 67 6c | either |knowingl|
|00000710| 79 20 6f 72 20 75 6e 6b | 6e 6f 77 69 6e 67 6c 79 |y or unk|nowingly|
|00000720| 20 74 61 6b 65 20 61 64 | 76 61 6e 74 61 67 65 20 | take ad|vantage |
|00000730| 6f 66 20 74 68 65 20 73 | 74 72 75 63 74 75 72 65 |of the s|tructure|
|00000740| 20 61 6e 64 20 6f 70 65 | 72 61 74 69 6f 6e 20 6f | and ope|ration o|
|00000750| 66 20 74 68 65 20 6f 6c | 64 20 4c 61 73 65 72 57 |f the ol|d LaserW|
|00000760| 72 69 74 65 72 20 64 72 | 69 76 65 72 2e 20 54 68 |riter dr|iver. Th|
|00000770| 69 73 20 64 6f 63 75 6d | 65 6e 74 20 74 72 69 65 |is docum|ent trie|
|00000780| 73 20 74 6f 20 61 64 64 | 72 65 73 73 20 73 6f 6d |s to add|ress som|
|00000790| 65 20 6f 66 20 74 68 65 | 20 61 72 63 68 69 74 65 |e of the| archite|
|000007a0| 63 74 75 72 61 6c 20 64 | 69 66 66 65 72 65 6e 63 |ctural d|ifferenc|
|000007b0| 65 73 20 62 65 74 77 65 | 65 6e 20 50 53 57 72 69 |es betwe|en PSWri|
|000007c0| 74 65 72 20 61 6e 64 20 | 74 68 65 20 6f 6c 64 20 |ter and |the old |
|000007d0| 4c 61 73 65 72 57 72 69 | 74 65 72 20 64 72 69 76 |LaserWri|ter driv|
|000007e0| 65 72 20 61 6e 64 20 68 | 6f 77 20 74 68 65 73 65 |er and h|ow these|
|000007f0| 20 64 69 66 66 65 72 65 | 6e 63 65 73 20 6d 61 79 | differe|nces may|
|00000800| 20 69 6d 70 61 63 74 20 | 74 68 65 20 50 6f 73 74 | impact |the Post|
|00000810| 53 63 72 69 70 74 20 6c | 61 6e 67 75 61 67 65 20 |Script l|anguage |
|00000820| 63 6f 64 65 20 61 6e 20 | 61 70 70 6c 69 63 61 74 |code an |applicat|
|00000830| 69 6f 6e 20 65 6d 69 74 | 73 2e 20 0d 53 65 63 74 |ion emit|s. .Sect|
|00000840| 69 6f 6e 20 32 20 64 69 | 73 63 75 73 73 65 73 20 |ion 2 di|scusses |
|00000850| 73 6f 6d 65 20 6f 66 20 | 74 68 65 20 64 65 73 69 |some of |the desi|
|00000860| 67 6e 20 6f 62 6a 65 63 | 74 69 76 65 73 20 6f 66 |gn objec|tives of|
|00000870| 20 74 68 65 20 6e 65 77 | 20 64 72 69 76 65 72 2e | the new| driver.|
|00000880| 20 53 65 63 74 69 6f 6e | 20 33 20 67 69 76 65 73 | Section| 3 gives|
|00000890| 20 61 20 62 72 69 65 66 | 20 6f 76 65 72 76 69 65 | a brief| overvie|
|000008a0| 77 20 6f 66 20 74 68 65 | 20 61 72 63 68 69 74 65 |w of the| archite|
|000008b0| 63 74 75 72 65 20 6f 66 | 20 74 68 65 20 64 72 69 |cture of| the dri|
|000008c0| 76 65 72 2c 20 6c 61 79 | 69 6e 67 20 74 68 65 20 |ver, lay|ing the |
|000008d0| 67 72 6f 75 6e 64 77 6f | 72 6b 20 66 6f 72 20 64 |groundwo|rk for d|
|000008e0| 69 73 63 75 73 73 69 6f | 6e 20 6f 66 20 61 72 65 |iscussio|n of are|
|000008f0| 61 73 20 77 68 65 72 65 | 20 61 70 70 6c 69 63 61 |as where| applica|
|00000900| 74 69 6f 6e 20 77 72 69 | 74 65 72 73 20 6d 69 67 |tion wri|ters mig|
|00000910| 68 74 20 65 6e 63 6f 75 | 6e 74 65 72 20 64 69 66 |ht encou|nter dif|
|00000920| 66 65 72 65 6e 63 65 73 | 20 62 65 74 77 65 65 6e |ferences| between|
|00000930| 20 50 53 57 72 69 74 65 | 72 20 61 6e 64 20 74 68 | PSWrite|r and th|
|00000940| 65 20 6f 6c 64 20 4c 61 | 73 65 72 57 72 69 74 65 |e old La|serWrite|
|00000950| 72 20 64 72 69 76 65 72 | 2e 20 53 65 63 74 69 6f |r driver|. Sectio|
|00000960| 6e 20 34 20 67 6f 65 73 | 20 69 6e 74 6f 20 64 65 |n 4 goes| into de|
|00000970| 70 74 68 20 6f 6e 20 73 | 70 65 63 69 66 69 63 20 |pth on s|pecific |
|00000980| 63 6f 6d 70 61 74 69 62 | 69 6c 69 74 79 20 69 73 |compatib|ility is|
|00000990| 73 75 65 73 20 77 68 69 | 63 68 20 68 61 76 65 20 |sues whi|ch have |
|000009a0| 62 65 65 6e 20 69 64 65 | 6e 74 69 66 69 65 64 20 |been ide|ntified |
|000009b0| 61 6e 64 20 64 69 73 63 | 75 73 73 65 73 20 69 64 |and disc|usses id|
|000009c0| 65 61 73 20 66 6f 72 20 | 61 76 6f 69 64 69 6e 67 |eas for |avoiding|
|000009d0| 20 74 68 65 73 65 20 63 | 6f 6d 70 61 74 69 62 69 | these c|ompatibi|
|000009e0| 6c 69 74 79 20 70 72 6f | 62 6c 65 6d 73 2e 20 53 |lity pro|blems. S|
|000009f0| 65 63 74 69 6f 6e 20 35 | 20 64 69 73 63 75 73 73 |ection 5| discuss|
|00000a00| 65 73 20 6e 65 77 20 50 | 72 47 65 6e 65 72 61 6c |es new P|rGeneral|
|00000a10| 20 73 65 6c 65 63 74 6f | 72 73 20 61 6e 64 20 68 | selecto|rs and h|
|00000a20| 6f 77 20 74 68 65 79 20 | 6d 61 79 20 62 65 20 75 |ow they |may be u|
|00000a30| 73 65 64 20 74 6f 20 61 | 6c 6c 6f 77 20 61 70 70 |sed to a|llow app|
|00000a40| 6c 69 63 61 74 69 6f 6e | 73 20 74 6f 20 67 61 74 |lication|s to gat|
|00000a50| 68 65 72 20 6d 6f 72 65 | 20 69 6e 66 6f 72 6d 61 |her more| informa|
|00000a60| 74 69 6f 6e 20 61 62 6f | 75 74 20 74 68 65 20 63 |tion abo|ut the c|
|00000a70| 75 72 72 65 6e 74 20 70 | 72 69 6e 74 20 6a 6f 62 |urrent p|rint job|
|00000a80| 20 61 6e 64 20 74 61 72 | 67 65 74 20 70 72 69 6e | and tar|get prin|
|00000a90| 74 65 72 2e 20 46 69 6e | 61 6c 6c 79 20 73 65 63 |ter. Fin|ally sec|
|00000aa0| 74 69 6f 6e 20 36 20 67 | 69 76 65 73 20 61 20 6c |tion 6 g|ives a l|
|00000ab0| 69 73 74 20 6f 66 20 72 | 65 66 65 72 65 6e 63 65 |ist of r|eference|
|00000ac0| 73 20 77 68 69 63 68 20 | 6d 61 79 20 62 65 20 75 |s which |may be u|
|00000ad0| 73 65 66 75 6c 20 74 6f | 20 4d 61 63 69 6e 74 6f |seful to| Macinto|
|00000ae0| 73 68 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 77 |sh appli|cation w|
|00000af0| 72 69 74 65 72 73 2c 20 | 62 6f 74 68 20 74 68 6f |riters, |both tho|
|00000b00| 73 65 20 77 68 6f 20 67 | 65 6e 65 72 61 74 65 20 |se who g|enerate |
|00000b10| 63 75 73 74 6f 6d 20 50 | 6f 73 74 53 63 72 69 70 |custom P|ostScrip|
|00000b20| 74 20 6c 61 6e 67 75 61 | 67 65 20 63 6f 64 65 20 |t langua|ge code |
|00000b30| 64 75 72 69 6e 67 20 70 | 72 69 6e 74 69 6e 67 20 |during p|rinting |
|00000b40| 61 6e 64 20 74 68 6f 73 | 65 20 77 68 69 63 68 20 |and thos|e which |
|00000b50| 61 6c 6c 6f 77 20 74 68 | 65 20 64 72 69 76 65 72 |allow th|e driver|
|00000b60| 20 74 6f 20 67 65 6e 65 | 72 61 74 65 20 61 6c 6c | to gene|rate all|
|00000b70| 20 74 68 65 20 50 6f 73 | 74 53 63 72 69 70 74 20 | the Pos|tScript |
|00000b80| 6c 61 6e 67 75 61 67 65 | 20 63 6f 64 65 2e 0d 41 |language| code..A|
|00000b90| 70 70 6c 69 63 61 74 69 | 6f 6e 20 77 72 69 74 65 |pplicati|on write|
|00000ba0| 72 73 20 77 68 69 63 68 | 20 61 6c 6c 6f 77 20 74 |rs which| allow t|
|00000bb0| 68 65 20 64 72 69 76 65 | 72 20 74 6f 20 67 65 6e |he drive|r to gen|
|00000bc0| 65 72 61 74 65 20 61 6c | 6c 20 74 68 65 20 50 6f |erate al|l the Po|
|00000bd0| 73 74 53 63 72 69 70 74 | 20 6c 61 6e 67 75 61 67 |stScript| languag|
|00000be0| 65 20 63 6f 64 65 20 64 | 75 72 69 6e 67 20 74 68 |e code d|uring th|
|00000bf0| 65 20 70 72 69 6e 74 69 | 6e 67 20 70 72 6f 63 65 |e printi|ng proce|
|00000c00| 73 73 20 73 68 6f 75 6c | 64 20 72 65 61 64 20 74 |ss shoul|d read t|
|00000c10| 68 65 20 66 6f 6c 6c 6f | 77 69 6e 67 0d a5 09 73 |he follo|wing...s|
|00000c20| 65 63 74 69 6f 6e 20 33 | 2e 34 20 64 69 73 63 75 |ection 3|.4 discu|
|00000c30| 73 73 69 6e 67 20 74 68 | 65 20 70 61 67 65 20 73 |ssing th|e page s|
|00000c40| 65 74 75 70 20 61 6e 64 | 20 70 72 69 6e 74 20 64 |etup and| print d|
|00000c50| 69 61 6c 6f 67 73 0d a5 | 09 73 65 63 74 69 6f 6e |ialogs..|.section|
|00000c60| 20 34 2e 36 20 64 69 73 | 63 75 73 73 69 6e 67 20 | 4.6 dis|cussing |
|00000c70| 45 50 53 20 66 69 6c 65 | 20 67 65 6e 65 72 61 74 |EPS file| generat|
|00000c80| 69 6f 6e 0d a5 20 09 74 | 68 65 20 72 65 6c 65 76 |ion.. .t|he relev|
|00000c90| 61 6e 74 20 64 6f 63 75 | 6d 65 6e 74 73 20 6c 69 |ant docu|ments li|
|00000ca0| 73 74 65 64 20 69 6e 20 | 73 65 63 74 69 6f 6e 20 |sted in |section |
|00000cb0| 36 20 77 68 69 63 68 20 | 64 69 73 63 75 73 73 20 |6 which |discuss |
|00000cc0| 61 73 70 65 63 74 73 20 | 6f 66 20 70 72 69 6e 74 |aspects |of print|
|00000cd0| 69 6e 67 20 61 6e 64 20 | 70 72 69 6e 74 20 64 72 |ing and |print dr|
|00000ce0| 69 76 65 72 20 63 6f 6d | 70 61 74 69 62 69 6c 69 |iver com|patibili|
|00000cf0| 74 79 20 77 68 69 63 68 | 20 61 72 65 20 6e 6f 74 |ty which| are not|
|00000d00| 20 6e 65 63 65 73 73 61 | 72 69 6c 79 20 73 70 65 | necessa|rily spe|
|00000d10| 63 69 66 69 63 20 74 6f | 20 70 72 69 6e 74 69 6e |cific to| printin|
|00000d20| 67 20 74 68 72 6f 75 67 | 68 20 50 53 57 72 69 74 |g throug|h PSWrit|
|00000d30| 65 72 20 6f 72 20 74 68 | 65 20 6f 6c 64 20 4c 61 |er or th|e old La|
|00000d40| 73 65 72 57 72 69 74 65 | 72 20 64 72 69 76 65 72 |serWrite|r driver|
|00000d50| 2e 0d 57 72 69 74 65 72 | 73 20 6f 66 20 61 70 70 |..Writer|s of app|
|00000d60| 6c 69 63 61 74 69 6f 6e | 73 20 77 68 69 63 68 20 |lication|s which |
|00000d70| 67 65 6e 65 72 61 74 65 | 20 61 6e 79 20 63 75 73 |generate| any cus|
|00000d80| 74 6f 6d 20 50 6f 73 74 | 53 63 72 69 70 74 20 6c |tom Post|Script l|
|00000d90| 61 6e 67 75 61 67 65 20 | 63 6f 64 65 20 77 68 69 |anguage |code whi|
|00000da0| 6c 65 20 70 72 69 6e 74 | 69 6e 67 20 77 69 74 68 |le print|ing with|
|00000db0| 20 74 68 65 20 6f 6c 64 | 20 4c 61 73 65 72 57 72 | the old| LaserWr|
|00000dc0| 69 74 65 72 20 64 72 69 | 76 65 72 20 61 72 65 20 |iter dri|ver are |
|00000dd0| 65 6e 63 6f 75 72 61 67 | 65 64 20 74 6f 20 63 61 |encourag|ed to ca|
|00000de0| 72 65 66 75 6c 6c 79 20 | 72 65 61 64 20 74 68 69 |refully |read thi|
|00000df0| 73 20 63 6f 6d 70 6c 65 | 74 65 20 64 6f 63 75 6d |s comple|te docum|
|00000e00| 65 6e 74 2c 20 65 73 70 | 65 63 69 61 6c 6c 79 20 |ent, esp|ecially |
|00000e10| 73 65 63 74 69 6f 6e 20 | 34 2e 20 0d 32 09 6e 65 |section |4. .2.ne|
|00000e20| 77 20 64 72 69 76 65 72 | 20 6f 76 65 72 76 69 65 |w driver| overvie|
|00000e30| 77 0d 54 68 65 20 6e 65 | 77 20 64 72 69 76 65 72 |w.The ne|w driver|
|00000e40| 20 63 6f 6d 70 6c 65 74 | 65 6c 79 20 72 65 70 6c | complet|ely repl|
|00000e50| 61 63 65 73 20 74 68 65 | 20 6f 6c 64 20 4c 61 73 |aces the| old Las|
|00000e60| 65 72 57 72 69 74 65 72 | 20 64 72 69 76 65 72 2e |erWriter| driver.|
|00000e70| 20 0d 54 68 65 20 70 72 | 69 6e 63 69 70 61 6c 20 | .The pr|incipal |
|00000e80| 64 65 73 69 67 6e 20 67 | 6f 61 6c 73 20 6f 66 20 |design g|oals of |
|00000e90| 74 68 65 20 6e 65 77 20 | 64 72 69 76 65 72 20 61 |the new |driver a|
|00000ea0| 72 65 3a 20 0d a5 09 54 | 6f 20 6d 61 6b 65 20 66 |re: ...T|o make f|
|00000eb0| 75 6c 6c 20 75 73 65 20 | 6f 66 20 74 68 65 20 6e |ull use |of the n|
|00000ec0| 65 77 20 63 61 70 61 62 | 69 6c 69 74 69 65 73 20 |ew capab|ilities |
|00000ed0| 61 76 61 69 6c 61 62 6c | 65 20 69 6e 20 50 6f 73 |availabl|e in Pos|
|00000ee0| 74 53 63 72 69 70 74 20 | 4c 65 76 65 6c 20 32 20 |tScript |Level 2 |
|00000ef0| 28 73 75 63 68 20 61 73 | 20 64 61 74 61 20 63 6f |(such as| data co|
|00000f00| 6d 70 72 65 73 73 69 6f | 6e 2c 20 69 6d 70 72 6f |mpressio|n, impro|
|00000f10| 76 65 64 20 70 61 74 74 | 65 72 6e 20 72 65 6e 64 |ved patt|ern rend|
|00000f20| 65 72 69 6e 67 2c 20 72 | 65 63 74 61 6e 67 6c 65 |ering, r|ectangle|
|00000f30| 20 64 72 61 77 69 6e 67 | 20 70 72 69 6d 69 74 69 | drawing| primiti|
|00000f40| 76 65 73 2c 20 61 6e 64 | 20 64 65 76 69 63 65 2d |ves, and| device-|
|00000f50| 69 6e 64 65 70 65 6e 64 | 65 6e 74 20 63 6f 6c 6f |independ|ent colo|
|00000f60| 72 20 63 61 6c 69 62 72 | 61 74 69 6f 6e 29 20 77 |r calibr|ation) w|
|00000f70| 68 69 6c 65 20 6d 61 69 | 6e 74 61 69 6e 69 6e 67 |hile mai|ntaining|
|00000f80| 20 63 6f 6d 70 61 74 69 | 62 69 6c 69 74 79 20 77 | compati|bility w|
|00000f90| 69 74 68 20 6f 6c 64 65 | 72 2c 20 4c 65 76 65 6c |ith olde|r, Level|
|00000fa0| 20 31 20 6f 75 74 70 75 | 74 20 64 65 76 69 63 65 | 1 outpu|t device|
|00000fb0| 73 0d a5 09 54 6f 20 69 | 6d 70 72 6f 76 65 20 70 |s...To i|mprove p|
|00000fc0| 65 72 66 6f 72 6d 61 6e | 63 65 20 77 68 65 6e 20 |erforman|ce when |
|00000fd0| 70 72 69 6e 74 69 6e 67 | 20 74 6f 20 61 6c 6c 20 |printing| to all |
|00000fe0| 50 6f 73 74 53 63 72 69 | 70 74 20 70 72 69 6e 74 |PostScri|pt print|
|00000ff0| 65 72 73 20 0d a5 09 54 | 6f 20 70 72 6f 76 69 64 |ers ...T|o provid|
|00001000| 65 20 75 73 65 72 20 61 | 63 63 65 73 73 20 74 6f |e user a|ccess to|
|00001010| 20 61 6c 6c 20 64 65 76 | 69 63 65 2d 73 70 65 63 | all dev|ice-spec|
|00001020| 69 66 69 63 20 66 65 61 | 74 75 72 65 73 20 6f 66 |ific fea|tures of|
|00001030| 20 61 6e 79 20 63 68 6f | 73 65 6e 20 6f 75 74 70 | any cho|sen outp|
|00001040| 75 74 20 64 65 76 69 63 | 65 20 74 68 72 6f 75 67 |ut devic|e throug|
|00001050| 68 20 61 20 64 79 6e 61 | 6d 69 63 61 6c 6c 79 20 |h a dyna|mically |
|00001060| 65 78 74 65 6e 73 69 62 | 6c 65 20 75 73 65 72 20 |extensib|le user |
|00001070| 69 6e 74 65 72 66 61 63 | 65 0d a5 09 54 6f 20 61 |interfac|e...To a|
|00001080| 6c 6c 6f 77 20 66 6f 72 | 20 66 75 74 75 72 65 20 |llow for| future |
|00001090| 65 78 70 61 6e 73 69 6f | 6e 20 61 6e 64 20 61 64 |expansio|n and ad|
|000010a0| 61 70 74 61 74 69 6f 6e | 20 74 68 72 6f 75 67 68 |aptation| through|
|000010b0| 20 61 20 6d 6f 64 75 6c | 61 72 20 61 72 63 68 69 | a modul|ar archi|
|000010c0| 74 65 63 74 75 72 65 20 | 66 6f 72 20 6e 65 74 2d |tecture |for net-|
|000010d0| 77 6f 72 6b 20 63 6f 6d | 6d 75 6e 69 63 61 74 69 |work com|municati|
|000010e0| 6f 6e 73 0d a5 09 54 6f | 20 69 6d 70 72 6f 76 65 |ons...To| improve|
|000010f0| 20 66 6c 65 78 69 62 69 | 6c 69 74 79 20 61 6e 64 | flexibi|lity and|
|00001100| 20 63 6f 6d 70 61 74 69 | 62 69 6c 69 74 79 20 62 | compati|bility b|
|00001110| 79 20 61 6c 6c 6f 77 69 | 6e 67 20 50 6f 73 74 53 |y allowi|ng PostS|
|00001120| 63 72 69 70 74 20 6c 61 | 6e 67 75 61 67 65 20 66 |cript la|nguage f|
|00001130| 69 6c 65 73 20 74 6f 20 | 62 65 20 73 61 76 65 64 |iles to |be saved|
|00001140| 20 69 6e 20 61 20 76 61 | 72 69 65 74 79 20 6f 66 | in a va|riety of|
|00001150| 20 70 6f 72 74 61 62 6c | 65 20 66 6f 72 6d 61 74 | portabl|e format|
|00001160| 73 2c 20 69 6e 63 6c 75 | 64 69 6e 67 20 45 6e 63 |s, inclu|ding Enc|
|00001170| 61 70 73 75 6c 61 74 65 | 64 20 50 6f 73 74 53 63 |apsulate|d PostSc|
|00001180| 72 69 70 74 20 46 69 6c | 65 20 28 45 50 53 29 20 |ript Fil|e (EPS) |
|00001190| 66 6f 72 6d 61 74 2e 0d | a5 09 54 6f 20 67 65 6e |format..|..To gen|
|000011a0| 65 72 61 74 65 20 6f 75 | 74 70 75 74 20 66 69 6c |erate ou|tput fil|
|000011b0| 65 73 20 63 6f 6e 66 6f | 72 6d 69 6e 67 20 74 6f |es confo|rming to|
|000011c0| 20 41 64 6f 62 65 d5 73 | 20 64 6f 63 75 6d 65 6e | Adobe.s| documen|
|000011d0| 74 20 73 74 72 75 63 74 | 75 72 69 6e 67 20 63 6f |t struct|uring co|
|000011e0| 6e 76 65 6e 74 69 6f 6e | 73 20 28 44 53 43 29 2e |nvention|s (DSC).|
|000011f0| 0d 57 68 69 6c 65 20 73 | 6f 6d 65 20 6f 66 20 74 |.While s|ome of t|
|00001200| 68 65 20 69 6d 70 72 6f | 76 65 6d 65 6e 74 73 20 |he impro|vements |
|00001210| 61 76 61 69 6c 61 62 6c | 65 20 77 69 74 68 20 50 |availabl|e with P|
|00001220| 53 57 72 69 74 65 72 20 | 6d 61 79 20 6e 6f 74 20 |SWriter |may not |
|00001230| 62 65 20 6f 62 76 69 6f | 75 73 20 61 74 20 74 68 |be obvio|us at th|
|00001240| 65 20 75 73 65 72 20 69 | 6e 74 65 72 66 61 63 65 |e user i|nterface|
|00001250| 20 6c 65 76 65 6c 20 6f | 66 20 74 68 65 20 64 72 | level o|f the dr|
|00001260| 69 76 65 72 20 28 73 75 | 63 68 20 61 73 20 69 6d |iver (su|ch as im|
|00001270| 70 72 6f 76 65 64 20 70 | 65 72 66 6f 72 6d 61 6e |proved p|erforman|
|00001280| 63 65 20 61 6e 64 20 50 | 6f 73 74 53 63 72 69 70 |ce and P|ostScrip|
|00001290| 74 20 4c 65 76 65 6c 20 | 32 20 73 75 70 70 6f 72 |t Level |2 suppor|
|000012a0| 74 29 2c 20 74 68 65 72 | 65 20 61 72 65 20 73 65 |t), ther|e are se|
|000012b0| 76 65 72 61 6c 20 69 6d | 70 72 6f 76 65 6d 65 6e |veral im|provemen|
|000012c0| 74 73 20 77 68 69 63 68 | 20 61 6c 6c 6f 77 20 6e |ts which| allow n|
|000012d0| 65 77 20 66 75 6e 63 74 | 69 6f 6e 61 6c 69 74 79 |ew funct|ionality|
|000012e0| 20 74 6f 20 65 6e 64 20 | 75 73 65 72 73 2e 20 54 | to end |users. T|
|000012f0| 68 65 20 61 62 69 6c 69 | 74 79 20 74 6f 20 68 61 |he abili|ty to ha|
|00001300| 6e 64 6c 65 20 32 2d 75 | 70 20 61 6e 64 20 34 2d |ndle 2-u|p and 4-|
|00001310| 75 70 20 70 72 69 6e 74 | 69 6e 67 20 28 73 65 65 |up print|ing (see|
|00001320| 20 46 69 67 75 72 65 20 | 31 29 20 69 73 20 61 20 | Figure |1) is a |
|00001330| 64 69 72 65 63 74 20 72 | 65 73 75 6c 74 20 50 53 |direct r|esult PS|
|00001340| 57 72 69 74 65 72 d5 73 | 20 67 65 6e 65 72 61 74 |Writer.s| generat|
|00001350| 69 6f 6e 20 6f 66 20 63 | 6f 6e 66 6f 72 6d 69 6e |ion of c|onformin|
|00001360| 67 20 50 6f 73 74 53 63 | 72 69 70 74 20 6c 61 6e |g PostSc|ript lan|
|00001370| 67 75 61 67 65 20 63 6f | 64 65 2e 20 54 68 65 20 |guage co|de. The |
|00001380| 61 62 69 6c 69 74 79 20 | 74 6f 20 61 6c 6c 6f 77 |ability |to allow|
|00001390| 20 66 6f 72 20 65 78 74 | 65 6e 64 65 64 20 70 61 | for ext|ended pa|
|000013a0| 70 65 72 20 73 69 7a 65 | 73 20 61 6e 64 20 70 61 |per size|s and pa|
|000013b0| 70 65 72 20 62 69 6e 20 | 73 75 70 70 6f 72 74 20 |per bin |support |
|000013c0| 28 73 65 65 20 46 69 67 | 75 72 65 20 32 29 20 69 |(see Fig|ure 2) i|
|000013d0| 73 20 64 75 65 20 74 6f | 20 74 68 65 20 64 72 69 |s due to| the dri|
|000013e0| 76 65 72 d5 73 20 75 73 | 65 20 6f 66 20 50 6f 73 |ver.s us|e of Pos|
|000013f0| 74 53 63 72 69 70 74 20 | 50 72 69 6e 74 65 72 20 |tScript |Printer |
|00001400| 44 65 73 63 72 69 70 74 | 69 6f 6e 20 28 50 50 44 |Descript|ion (PPD|
|00001410| 29 20 66 69 6c 65 73 20 | 66 6f 72 20 63 6f 6e 66 |) files |for conf|
|00001420| 69 67 75 72 69 6e 67 20 | 74 68 65 20 75 73 65 72 |iguring |the user|
|00001430| 20 69 6e 74 65 72 66 61 | 63 65 20 61 6e 64 20 67 | interfa|ce and g|
|00001440| 65 6e 65 72 61 74 69 6e | 67 20 64 65 76 69 63 65 |eneratin|g device|
|00001450| 20 73 70 65 63 69 66 69 | 63 20 63 6f 64 65 2e 20 | specifi|c code. |
|00001460| 54 68 65 20 61 62 69 6c | 69 74 79 20 74 6f 20 67 |The abil|ity to g|
|00001470| 65 6e 65 72 61 74 65 20 | 45 50 53 20 66 69 6c 65 |enerate |EPS file|
|00001480| 73 20 28 73 65 65 20 46 | 69 67 75 72 65 20 33 29 |s (see F|igure 3)|
|00001490| 20 69 73 20 61 76 61 69 | 6c 61 62 6c 65 2c 20 61 | is avai|lable, a|
|000014a0| 67 61 69 6e 20 62 65 63 | 61 75 73 65 20 6f 66 20 |gain bec|ause of |
|000014b0| 50 53 57 72 69 74 65 72 | d5 73 20 67 65 6e 65 72 |PSWriter|.s gener|
|000014c0| 61 74 69 6f 6e 20 6f 66 | 20 63 6f 6e 66 6f 72 6d |ation of| conform|
|000014d0| 69 6e 67 20 50 6f 73 74 | 53 63 72 69 70 74 20 6c |ing Post|Script l|
|000014e0| 61 6e 67 75 61 67 65 20 | 63 6f 64 65 2e 0d 46 69 |anguage |code..Fi|
|000014f0| 67 75 72 65 20 31 09 50 | 61 67 65 20 53 65 74 75 |gure 1.P|age Setu|
|00001500| 70 20 44 69 61 6c 6f 67 | 0d 46 69 67 75 72 65 20 |p Dialog|.Figure |
|00001510| 32 09 50 72 69 6e 74 20 | 44 69 61 6c 6f 67 0d 46 |2.Print |Dialog.F|
|00001520| 69 67 75 72 65 20 33 09 | 50 72 69 6e 74 20 74 6f |igure 3.|Print to|
|00001530| 20 44 69 73 6b 20 44 69 | 61 6c 6f 67 0d 33 09 64 | Disk Di|alog.3.d|
|00001540| 72 69 76 65 72 20 61 72 | 63 68 69 74 65 63 74 75 |river ar|chitectu|
|00001550| 72 65 0d 54 68 69 73 20 | 73 65 63 74 69 6f 6e 20 |re.This |section |
|00001560| 69 6e 63 6c 75 64 65 73 | 20 61 20 20 73 68 6f 72 |includes| a shor|
|00001570| 74 20 73 75 6d 6d 61 72 | 79 20 6f 66 20 74 68 65 |t summar|y of the|
|00001580| 20 50 53 57 72 69 74 65 | 72 20 61 72 63 68 69 74 | PSWrite|r archit|
|00001590| 65 63 74 75 72 65 2e 20 | 53 6f 6d 65 20 6f 66 20 |ecture. |Some of |
|000015a0| 74 68 69 73 20 64 69 73 | 63 75 73 73 69 6f 6e 20 |this dis|cussion |
|000015b0| 69 73 20 73 6f 6c 65 6c | 79 20 74 6f 20 64 65 73 |is solel|y to des|
|000015c0| 63 72 69 62 65 20 74 68 | 65 20 77 61 79 20 74 68 |cribe th|e way th|
|000015d0| 65 20 6e 65 77 20 64 72 | 69 76 65 72 20 66 75 6e |e new dr|iver fun|
|000015e0| 63 74 69 6f 6e 73 2e 20 | 4d 6f 73 74 20 69 73 20 |ctions. |Most is |
|000015f0| 6e 65 63 65 73 73 61 72 | 79 20 69 6e 20 6f 72 64 |necessar|y in ord|
|00001600| 65 72 20 74 6f 20 64 69 | 73 63 75 73 73 20 73 6f |er to di|scuss so|
|00001610| 6d 65 20 6f 66 20 74 68 | 65 20 76 61 72 69 6f 75 |me of th|e variou|
|00001620| 73 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 63 6f |s applic|ation co|
|00001630| 6d 70 61 74 69 62 69 6c | 69 74 79 20 69 73 73 75 |mpatibil|ity issu|
|00001640| 65 73 20 64 65 73 63 72 | 69 62 65 64 20 69 6e 20 |es descr|ibed in |
|00001650| 73 65 63 74 69 6f 6e 20 | 34 2e 20 0d 33 2e 31 09 |section |4. .3.1.|
|00001660| 32 20 50 61 73 73 20 64 | 65 73 69 67 6e 0d 50 53 |2 Pass d|esign.PS|
|00001670| 57 72 69 74 65 72 20 69 | 73 20 62 79 20 64 65 73 |Writer i|s by des|
|00001680| 69 67 6e 20 61 20 32 2d | 70 61 73 73 20 64 72 69 |ign a 2-|pass dri|
|00001690| 76 65 72 2e 20 49 6e 20 | 6f 72 64 65 72 20 74 6f |ver. In |order to|
|000016a0| 20 6f 70 74 69 6d 69 7a | 65 20 74 68 65 20 67 65 | optimiz|e the ge|
|000016b0| 6e 65 72 61 74 65 64 20 | 50 6f 73 74 53 63 72 69 |nerated |PostScri|
|000016c0| 70 74 20 6c 61 6e 67 75 | 61 67 65 20 63 6f 64 65 |pt langu|age code|
|000016d0| 2c 20 69 74 20 66 69 72 | 73 74 20 73 70 6f 6f 6c |, it fir|st spool|
|000016e0| 73 20 74 68 65 20 61 70 | 70 6c 69 63 61 74 69 6f |s the ap|plicatio|
|000016f0| 6e 20 64 72 61 77 69 6e | 67 20 74 6f 20 64 69 73 |n drawin|g to dis|
|00001700| 6b 20 61 73 20 61 20 73 | 65 71 75 65 6e 63 65 20 |k as a s|equence |
|00001710| 6f 66 20 51 75 69 63 6b | 44 72 61 77 20 70 69 63 |of Quick|Draw pic|
|00001720| 74 75 72 65 73 2c 20 6f | 6e 65 20 66 6f 72 20 65 |tures, o|ne for e|
|00001730| 61 63 68 20 70 61 67 65 | 2e 20 57 68 65 6e 20 74 |ach page|. When t|
|00001740| 68 65 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 63 |he appli|cation c|
|00001750| 61 6c 6c 73 20 50 72 43 | 6c 6f 73 65 44 6f 63 20 |alls PrC|loseDoc |
|00001760| 74 68 65 20 64 72 69 76 | 65 72 20 63 6f 6d 70 6c |the driv|er compl|
|00001770| 65 74 65 73 20 77 72 69 | 74 69 6e 67 20 74 68 65 |etes wri|ting the|
|00001780| 20 73 70 6f 6f 6c 20 66 | 69 6c 65 20 74 6f 20 64 | spool f|ile to d|
|00001790| 69 73 6b 2e 20 54 68 65 | 20 73 65 74 74 69 6e 67 |isk. The| setting|
|000017a0| 20 6f 66 20 66 6f 72 65 | 67 72 6f 75 6e 64 20 70 | of fore|ground p|
|000017b0| 72 69 6e 74 69 6e 67 20 | 6f 72 20 62 61 63 6b 67 |rinting |or backg|
|000017c0| 72 6f 75 6e 64 20 70 72 | 69 6e 74 69 6e 67 20 63 |round pr|inting c|
|000017d0| 6f 6e 74 72 6f 6c 73 20 | 77 68 65 6e 20 74 68 65 |ontrols |when the|
|000017e0| 20 73 65 63 6f 6e 64 20 | 70 61 73 73 20 69 73 20 | second |pass is |
|000017f0| 63 6f 6d 70 6c 65 74 65 | 64 2e 20 49 66 20 42 61 |complete|d. If Ba|
|00001800| 63 6b 67 72 6f 75 6e 64 | 20 70 72 69 6e 74 69 6e |ckground| printin|
|00001810| 67 20 69 73 20 4f 66 66 | 2c 20 74 68 65 6e 20 74 |g is Off|, then t|
|00001820| 68 65 20 61 70 70 6c 69 | 63 61 74 69 6f 6e d5 73 |he appli|cation.s|
|00001830| 20 63 61 6c 6c 20 74 6f | 20 50 72 43 6c 6f 73 65 | call to| PrClose|
|00001840| 44 6f 63 20 63 61 75 73 | 65 73 20 50 53 57 72 69 |Doc caus|es PSWri|
|00001850| 74 65 72 20 74 6f 20 70 | 65 72 66 6f 72 6d 20 74 |ter to p|erform t|
|00001860| 68 65 20 73 65 63 6f 6e | 64 20 70 61 73 73 20 6f |he secon|d pass o|
|00001870| 66 20 70 72 69 6e 74 69 | 6e 67 20 62 65 66 6f 72 |f printi|ng befor|
|00001880| 65 20 50 72 43 6c 6f 73 | 65 44 6f 63 20 72 65 74 |e PrClos|eDoc ret|
|00001890| 75 72 6e 73 2e 20 50 53 | 57 72 69 74 65 72 20 6f |urns. PS|Writer o|
|000018a0| 70 65 6e 73 20 74 68 65 | 20 63 6f 6e 6e 65 63 74 |pens the| connect|
|000018b0| 69 6f 6e 20 74 6f 20 74 | 68 65 20 70 72 69 6e 74 |ion to t|he print|
|000018c0| 65 72 2c 20 70 65 72 66 | 6f 72 6d 73 20 71 75 65 |er, perf|orms que|
|000018d0| 72 69 65 73 20 66 6f 72 | 20 66 6f 6e 74 73 20 61 |ries for| fonts a|
|000018e0| 6e 64 20 6f 74 68 65 72 | 20 69 6e 66 6f 72 6d 61 |nd other| informa|
|000018f0| 74 69 6f 6e 2c 20 63 61 | 6c 6c 73 20 44 72 61 77 |tion, ca|lls Draw|
|00001900| 50 69 63 74 75 72 65 20 | 6f 6e 20 65 61 63 68 20 |Picture |on each |
|00001910| 70 69 63 74 75 72 65 20 | 69 6e 20 74 68 65 20 73 |picture |in the s|
|00001920| 70 6f 6f 6c 20 66 69 6c | 65 2c 20 61 6e 64 20 63 |pool fil|e, and c|
|00001930| 6f 6e 76 65 72 74 73 20 | 74 68 65 20 72 65 73 75 |onverts |the resu|
|00001940| 6c 74 69 6e 67 20 51 75 | 69 63 6b 44 72 61 77 20 |lting Qu|ickDraw |
|00001950| 63 61 6c 6c 73 20 74 6f | 20 50 6f 73 74 53 63 72 |calls to| PostScr|
|00001960| 69 70 74 20 6c 61 6e 67 | 75 61 67 65 20 63 6f 64 |ipt lang|uage cod|
|00001970| 65 2e 20 57 68 65 6e 20 | 61 6c 6c 20 74 68 65 20 |e. When |all the |
|00001980| 70 61 67 65 73 20 68 61 | 76 65 20 62 65 65 6e 20 |pages ha|ve been |
|00001990| 73 65 6e 74 20 74 6f 20 | 74 68 65 20 70 72 69 6e |sent to |the prin|
|000019a0| 74 65 72 2c 20 50 53 57 | 72 69 74 65 72 20 63 6c |ter, PSW|riter cl|
|000019b0| 6f 73 65 73 20 74 68 65 | 20 73 70 6f 6f 6c 20 66 |oses the| spool f|
|000019c0| 69 6c 65 20 61 6e 64 20 | 50 72 43 6c 6f 73 65 44 |ile and |PrCloseD|
|000019d0| 6f 63 20 72 65 74 75 72 | 6e 73 2e 20 41 74 20 74 |oc retur|ns. At t|
|000019e0| 68 61 74 20 70 6f 69 6e | 74 2c 20 74 68 65 20 75 |hat poin|t, the u|
|000019f0| 73 65 72 20 72 65 67 61 | 69 6e 73 20 63 6f 6e 74 |ser rega|ins cont|
|00001a00| 72 6f 6c 2e 20 49 66 20 | 42 61 63 6b 67 72 6f 75 |rol. If |Backgrou|
|00001a10| 6e 64 20 70 72 69 6e 74 | 69 6e 67 20 69 73 20 4f |nd print|ing is O|
|00001a20| 6e 2c 20 50 72 43 6c 6f | 73 65 44 6f 63 20 72 65 |n, PrClo|seDoc re|
|00001a30| 74 75 72 6e 73 20 63 6f | 6e 74 72 6f 6c 20 74 6f |turns co|ntrol to|
|00001a40| 20 74 68 65 20 61 70 70 | 6c 69 63 61 74 69 6f 6e | the app|lication|
|00001a50| 2e 20 54 68 65 20 73 65 | 63 6f 6e 64 20 70 61 73 |. The se|cond pas|
|00001a60| 73 20 69 73 20 74 68 65 | 6e 20 68 61 6e 64 6c 65 |s is the|n handle|
|00001a70| 64 20 62 79 20 50 72 69 | 6e 74 20 4d 6f 6e 69 74 |d by Pri|nt Monit|
|00001a80| 6f 72 20 61 73 20 69 74 | 20 69 73 20 77 69 74 68 |or as it| is with|
|00001a90| 20 74 68 65 20 6f 6c 64 | 20 4c 61 73 65 72 57 72 | the old| LaserWr|
|00001aa0| 69 74 65 72 20 64 72 69 | 76 65 72 3a 20 74 68 65 |iter dri|ver: the|
|00001ab0| 20 63 6f 6e 6e 65 63 74 | 69 6f 6e 20 74 6f 20 74 | connect|ion to t|
|00001ac0| 68 65 20 70 72 69 6e 74 | 65 72 20 74 61 6b 65 73 |he print|er takes|
|00001ad0| 20 70 6c 61 63 65 20 61 | 6e 64 20 74 68 65 20 50 | place a|nd the P|
|00001ae0| 6f 73 74 53 63 72 69 70 | 74 20 6f 75 74 70 75 74 |ostScrip|t output|
|00001af0| 20 69 73 20 67 65 6e 65 | 72 61 74 65 64 2e 20 49 | is gene|rated. I|
|00001b00| 6e 20 6f 72 64 65 72 20 | 74 6f 20 6d 61 69 6e 74 |n order |to maint|
|00001b10| 61 69 6e 20 63 6f 6d 70 | 61 74 69 62 69 6c 69 74 |ain comp|atibilit|
|00001b20| 79 20 77 69 74 68 20 74 | 68 65 20 6f 6c 64 20 4c |y with t|he old L|
|00001b30| 61 73 65 72 57 72 69 74 | 65 72 20 64 72 69 76 65 |aserWrit|er drive|
|00001b40| 72 2c 20 50 53 57 72 69 | 74 65 72 20 73 74 69 6c |r, PSWri|ter stil|
|00001b50| 6c 20 72 65 70 6f 72 74 | 73 20 69 74 73 65 6c 66 |l report|s itself|
|00001b60| 20 74 6f 20 62 65 20 61 | 20 64 72 61 66 74 20 70 | to be a| draft p|
|00001b70| 72 69 6e 74 65 72 20 64 | 72 69 76 65 72 20 65 76 |rinter d|river ev|
|00001b80| 65 6e 20 74 68 6f 75 67 | 68 20 69 74 20 62 65 68 |en thoug|h it beh|
|00001b90| 61 76 65 73 20 6d 6f 72 | 65 20 6c 69 6b 65 20 61 |aves mor|e like a|
|00001ba0| 20 73 70 6f 6f 6c 69 6e | 67 20 64 72 69 76 65 72 | spoolin|g driver|
|00001bb0| 20 72 65 67 61 72 64 6c | 65 73 73 20 6f 66 20 77 | regardl|ess of w|
|00001bc0| 68 65 74 68 65 72 20 62 | 61 63 6b 67 72 6f 75 6e |hether b|ackgroun|
|00001bd0| 64 20 70 72 69 6e 74 69 | 6e 67 20 69 73 20 4f 6e |d printi|ng is On|
|00001be0| 20 6f 72 20 4f 66 66 2e | 20 0d 33 2e 32 09 54 68 | or Off.| .3.2.Th|
|00001bf0| 65 20 6d 64 20 64 69 63 | 74 69 6f 6e 61 72 79 0d |e md dic|tionary.|
|00001c00| 54 68 65 20 50 6f 73 74 | 53 63 72 69 70 74 20 6c |The Post|Script l|
|00001c10| 61 6e 67 75 61 67 65 20 | 63 6f 64 65 20 67 65 6e |anguage |code gen|
|00001c20| 65 72 61 74 65 64 20 62 | 79 20 50 53 57 72 69 74 |erated b|y PSWrit|
|00001c30| 65 72 20 69 73 20 63 6f | 6d 70 6c 65 74 65 6c 79 |er is co|mpletely|
|00001c40| 20 64 69 66 66 65 72 65 | 6e 74 20 74 68 61 6e 20 | differe|nt than |
|00001c50| 74 68 61 74 20 6f 66 20 | 74 68 65 20 6f 6c 64 20 |that of |the old |
|00001c60| 4c 61 73 65 72 57 72 69 | 74 65 72 20 64 72 69 76 |LaserWri|ter driv|
|00001c70| 65 72 2e 20 50 53 57 72 | 69 74 65 72 20 63 6f 6e |er. PSWr|iter con|
|00001c80| 74 69 6e 75 65 73 20 74 | 6f 20 75 73 65 20 74 68 |tinues t|o use th|
|00001c90| 65 20 64 69 63 74 69 6f | 6e 61 72 79 20 d4 6d 64 |e dictio|nary .md|
|00001ca0| d5 20 66 6f 72 20 73 74 | 6f 72 69 6e 67 20 69 74 |. for st|oring it|
|00001cb0| 73 20 70 72 69 76 61 74 | 65 6c 79 20 64 65 66 69 |s privat|ely defi|
|00001cc0| 6e 65 64 20 70 72 6f 63 | 65 64 75 72 65 73 2e 20 |ned proc|edures. |
|00001cd0| 54 68 65 20 70 72 6f 63 | 65 64 75 72 65 73 20 75 |The proc|edures u|
|00001ce0| 73 65 64 20 61 6e 64 20 | 74 68 65 69 72 20 6e 61 |sed and |their na|
|00001cf0| 6d 65 73 20 61 72 65 20 | 74 79 70 69 63 61 6c 6c |mes are |typicall|
|00001d00| 79 20 63 6f 6d 70 6c 65 | 74 65 6c 79 20 64 69 66 |y comple|tely dif|
|00001d10| 66 65 72 65 6e 74 20 74 | 68 61 6e 20 74 68 6f 73 |ferent t|han thos|
|00001d20| 65 20 75 73 65 64 20 62 | 79 20 74 68 65 20 6f 6c |e used b|y the ol|
|00001d30| 64 20 4c 61 73 65 72 57 | 72 69 74 65 72 20 64 72 |d LaserW|riter dr|
|00001d40| 69 76 65 72 2e 20 49 6e | 20 73 6f 6d 65 20 73 6d |iver. In| some sm|
|00001d50| 61 6c 6c 20 6e 75 6d 62 | 65 72 20 6f 66 20 63 61 |all numb|er of ca|
|00001d60| 73 65 73 20 74 68 65 72 | 65 20 69 73 20 61 20 70 |ses ther|e is a p|
|00001d70| 72 6f 63 65 64 75 72 65 | 20 6e 61 6d 65 64 20 61 |rocedure| named a|
|00001d80| 73 20 69 6e 20 74 68 65 | 20 6f 6c 64 20 4c 61 73 |s in the| old Las|
|00001d90| 65 72 57 72 69 74 65 72 | 20 64 72 69 76 65 72 3b |erWriter| driver;|
|00001da0| 20 68 6f 77 65 76 65 72 | 2c 20 74 68 69 73 20 69 | however|, this i|
|00001db0| 73 20 64 6f 6e 65 20 72 | 61 72 65 6c 79 20 61 6e |s done r|arely an|
|00001dc0| 64 20 6f 6e 6c 79 20 77 | 68 65 6e 20 74 68 65 20 |d only w|hen the |
|00001dd0| 66 75 6e 63 74 69 6f 6e | 61 6c 69 74 79 20 69 73 |function|ality is|
|00001de0| 20 69 64 65 6e 74 69 63 | 61 6c 2e 0d 50 53 57 72 | identic|al..PSWr|
|00001df0| 69 74 65 72 20 64 6f 65 | 73 20 6e 6f 74 20 6d 61 |iter doe|s not ma|
|00001e00| 69 6e 74 61 69 6e 20 69 | 74 73 20 64 69 63 74 69 |intain i|ts dicti|
|00001e10| 6f 6e 61 72 79 20 6f 75 | 74 73 69 64 65 20 74 68 |onary ou|tside th|
|00001e20| 65 20 50 6f 73 74 53 63 | 72 69 70 74 20 70 72 69 |e PostSc|ript pri|
|00001e30| 6e 74 65 72 20 73 65 72 | 76 65 72 20 6c 6f 6f 70 |nter ser|ver loop|
|00001e40| 20 61 73 20 70 72 65 2d | 37 2e 30 20 4c 61 73 65 | as pre-|7.0 Lase|
|00001e50| 72 57 72 69 74 65 72 20 | 77 72 69 74 65 72 73 20 |rWriter |writers |
|00001e60| 64 69 64 2e 20 42 79 20 | 63 6f 6e 74 61 69 6e 69 |did. By |containi|
|00001e70| 6e 67 20 74 68 65 20 64 | 72 69 76 65 72 20 70 72 |ng the d|river pr|
|00001e80| 6f 6c 6f 67 20 63 6f 64 | 65 20 63 6f 6d 70 6c 65 |olog cod|e comple|
|00001e90| 74 65 6c 79 20 74 6f 20 | 74 68 65 20 50 6f 73 74 |tely to |the Post|
|00001ea0| 53 63 72 69 70 74 20 6a | 6f 62 20 63 75 72 72 65 |Script j|ob curre|
|00001eb0| 6e 74 6c 79 20 62 65 69 | 6e 67 20 70 72 69 6e 74 |ntly bei|ng print|
|00001ec0| 65 64 2c 20 65 61 63 68 | 20 50 6f 73 74 53 63 72 |ed, each| PostScr|
|00001ed0| 69 70 74 20 6a 6f 62 20 | 69 73 20 73 65 6c 66 20 |ipt job |is self |
|00001ee0| 63 6f 6e 74 61 69 6e 65 | 64 20 61 6e 64 20 64 6f |containe|d and do|
|00001ef0| 65 73 20 6e 6f 74 20 63 | 6f 6e 66 6c 69 63 74 20 |es not c|onflict |
|00001f00| 77 69 74 68 20 6f 74 68 | 65 72 20 75 73 65 72 73 |with oth|er users|
|00001f10| 20 6f 6e 20 74 68 65 20 | 6e 65 74 77 6f 72 6b 2e | on the |network.|
|00001f20| 20 49 6e 20 70 61 72 74 | 69 63 75 6c 61 72 2c 20 | In part|icular, |
|00001f30| 50 53 57 72 69 74 65 72 | 20 69 73 20 73 69 6d 75 |PSWriter| is simu|
|00001f40| 6c 74 61 6e 65 6f 75 73 | 6c 79 20 63 6f 6d 70 61 |ltaneous|ly compa|
|00001f50| 74 69 62 6c 65 20 77 69 | 74 68 20 75 73 65 72 73 |tible wi|th users|
|00001f60| 20 6f 66 20 6f 6c 64 65 | 72 20 4c 61 73 65 72 57 | of olde|r LaserW|
|00001f70| 72 69 74 65 72 20 64 72 | 69 76 65 72 73 20 70 72 |riter dr|ivers pr|
|00001f80| 69 6e 74 69 6e 67 20 74 | 6f 20 74 68 65 20 73 61 |inting t|o the sa|
|00001f90| 6d 65 20 70 72 69 6e 74 | 65 72 2e 0d 49 6e 20 6f |me print|er..In o|
|00001fa0| 72 64 65 72 20 74 6f 20 | 72 65 64 75 63 65 20 74 |rder to |reduce t|
|00001fb0| 68 65 20 61 6d 6f 75 6e | 74 20 6f 66 20 50 6f 73 |he amoun|t of Pos|
|00001fc0| 74 53 63 72 69 70 74 20 | 6c 61 6e 67 75 61 67 65 |tScript |language|
|00001fd0| 20 63 6f 64 65 20 73 65 | 6e 74 20 66 6f 72 20 65 | code se|nt for e|
|00001fe0| 61 63 68 20 70 72 69 6e | 74 20 6a 6f 62 2c 20 64 |ach prin|t job, d|
|00001ff0| 75 72 69 6e 67 20 69 74 | 73 20 66 69 72 73 74 20 |uring it|s first |
|00002000| 70 61 73 73 20 50 53 57 | 72 69 74 65 72 20 61 6e |pass PSW|riter an|
|00002010| 61 6c 79 7a 65 73 20 74 | 68 65 20 63 6f 6e 74 65 |alyzes t|he conte|
|00002020| 6e 74 73 20 6f 66 20 74 | 68 65 20 61 70 70 6c 69 |nts of t|he appli|
|00002030| 63 61 74 69 6f 6e 20 67 | 65 6e 65 72 61 74 65 64 |cation g|enerated|
|00002040| 20 51 75 69 63 6b 44 72 | 61 77 20 63 6f 64 65 20 | QuickDr|aw code |
|00002050| 61 6e 64 20 69 6e 63 6c | 75 64 65 73 20 6f 6e 6c |and incl|udes onl|
|00002060| 79 20 74 68 65 20 70 6f | 72 74 69 6f 6e 73 20 6f |y the po|rtions o|
|00002070| 66 20 69 74 73 20 50 6f | 73 74 53 63 72 69 70 74 |f its Po|stScript|
|00002080| 20 6c 61 6e 67 75 61 67 | 65 20 70 72 6f 6c 6f 67 | languag|e prolog|
|00002090| 20 63 6f 64 65 20 6e 65 | 63 65 73 73 61 72 79 20 | code ne|cessary |
|000020a0| 74 6f 20 64 72 61 77 20 | 74 68 65 20 61 73 73 6f |to draw |the asso|
|000020b0| 63 69 61 74 65 64 20 70 | 61 67 65 73 2e 20 54 68 |ciated p|ages. Th|
|000020c0| 69 73 20 61 6c 6c 6f 77 | 73 20 50 53 57 72 69 74 |is allow|s PSWrit|
|000020d0| 65 72 20 74 6f 20 63 75 | 74 20 64 6f 77 6e 20 6f |er to cu|t down o|
|000020e0| 6e 20 74 68 65 20 73 69 | 7a 65 20 6f 66 20 74 68 |n the si|ze of th|
|000020f0| 65 20 68 65 61 64 65 72 | 20 69 6e 63 6c 75 64 65 |e header| include|
|00002100| 64 20 69 6e 20 65 61 63 | 68 20 6a 6f 62 2e 0d 33 |d in eac|h job..3|
|00002110| 2e 33 09 70 6f 73 74 73 | 63 72 69 70 74 20 67 72 |.3.posts|cript gr|
|00002120| 61 70 68 69 63 73 20 73 | 74 61 74 65 20 6d 61 6e |aphics s|tate man|
|00002130| 61 67 65 6d 65 6e 74 0d | 50 53 57 72 69 74 65 72 |agement.|PSWriter|
|00002140| 20 6d 61 69 6e 74 61 69 | 6e 73 20 69 74 73 20 76 | maintai|ns its v|
|00002150| 69 65 77 20 6f 66 20 74 | 68 65 20 73 74 61 74 65 |iew of t|he state|
|00002160| 20 6f 66 20 74 68 65 20 | 50 6f 73 74 53 63 72 69 | of the |PostScri|
|00002170| 70 74 20 69 6e 74 65 72 | 70 72 65 74 65 72 20 6f |pt inter|preter o|
|00002180| 6e 20 74 68 65 20 68 6f | 73 74 20 61 73 20 69 74 |n the ho|st as it|
|00002190| 20 67 65 6e 65 72 61 74 | 65 73 20 74 68 65 20 6e | generat|es the n|
|000021a0| 65 63 65 73 73 61 72 79 | 20 50 6f 73 74 53 63 72 |ecessary| PostScr|
|000021b0| 69 70 74 20 6c 61 6e 67 | 75 61 67 65 20 63 6f 64 |ipt lang|uage cod|
|000021c0| 65 20 74 6f 20 6d 61 74 | 63 68 20 74 68 61 74 20 |e to mat|ch that |
|000021d0| 6f 66 20 74 68 65 20 51 | 75 69 63 6b 44 72 61 77 |of the Q|uickDraw|
|000021e0| 20 67 72 61 70 68 69 63 | 73 20 73 74 61 74 65 2e | graphic|s state.|
|000021f0| 20 50 53 57 72 69 74 65 | 72 20 67 65 6e 65 72 61 | PSWrite|r genera|
|00002200| 74 65 73 20 74 68 65 20 | 63 6f 64 65 20 6e 65 63 |tes the |code nec|
|00002210| 65 73 73 61 72 79 20 74 | 6f 20 6d 61 74 63 68 20 |essary t|o match |
|00002220| 74 68 65 20 63 6f 6c 6f | 72 2c 20 70 65 6e 20 73 |the colo|r, pen s|
|00002230| 69 7a 65 2c 20 63 6c 69 | 70 2c 20 63 6f 6f 72 64 |ize, cli|p, coord|
|00002240| 69 6e 61 74 65 20 73 79 | 73 74 65 6d 20 6f 72 69 |inate sy|stem ori|
|00002250| 65 6e 74 61 74 69 6f 6e | 20 61 6e 64 20 73 6f 20 |entation| and so |
|00002260| 66 6f 72 74 68 20 61 73 | 20 51 75 69 63 6b 44 72 |forth as| QuickDr|
|00002270| 61 77 20 67 72 61 70 68 | 69 63 73 20 69 73 20 63 |aw graph|ics is c|
|00002280| 6f 6e 76 65 72 74 65 64 | 20 74 6f 20 50 6f 73 74 |onverted| to Post|
|00002290| 53 63 72 69 70 74 20 6c | 61 6e 67 75 61 67 65 20 |Script l|anguage |
|000022a0| 63 6f 64 65 2e 20 54 68 | 69 73 20 67 65 6e 65 72 |code. Th|is gener|
|000022b0| 61 6c 20 61 70 70 72 6f | 61 63 68 20 69 73 20 6e |al appro|ach is n|
|000022c0| 6f 20 64 69 66 66 65 72 | 65 6e 74 20 74 68 61 6e |o differ|ent than|
|000022d0| 20 74 68 65 20 6f 6c 64 | 20 4c 61 73 65 72 57 72 | the old| LaserWr|
|000022e0| 69 74 65 72 3b 20 68 6f | 77 65 76 65 72 2c 20 74 |iter; ho|wever, t|
|000022f0| 68 65 20 50 6f 73 74 53 | 63 72 69 70 74 20 6c 61 |he PostS|cript la|
|00002300| 6e 67 75 61 67 65 20 63 | 6f 64 65 20 75 73 65 64 |nguage c|ode used|
|00002310| 20 74 6f 20 6d 61 69 6e | 74 61 69 6e 20 74 68 65 | to main|tain the|
|00002320| 20 73 74 61 74 65 20 6f | 66 20 74 68 65 20 50 6f | state o|f the Po|
|00002330| 73 74 53 63 72 69 70 74 | 20 69 6e 74 65 72 70 72 |stScript| interpr|
|00002340| 65 74 65 72 20 69 73 20 | 64 69 66 66 65 72 65 6e |eter is |differen|
|00002350| 74 20 69 6e 20 73 6f 6d | 65 20 63 61 73 65 73 2e |t in som|e cases.|
|00002360| 0d 50 53 57 72 69 74 65 | 72 20 6d 61 6e 61 67 65 |.PSWrite|r manage|
|00002370| 73 20 74 68 65 20 63 6c | 69 70 70 69 6e 67 20 70 |s the cl|ipping p|
|00002380| 61 74 68 20 69 6e 20 74 | 68 65 20 50 6f 73 74 53 |ath in t|he PostS|
|00002390| 63 72 69 70 74 20 69 6e | 74 65 72 70 72 65 74 65 |cript in|terprete|
|000023a0| 72 20 74 68 72 6f 75 67 | 68 20 74 68 65 20 75 73 |r throug|h the us|
|000023b0| 65 20 6f 66 20 74 68 65 | 20 50 6f 73 74 53 63 72 |e of the| PostScr|
|000023c0| 69 70 74 20 6f 70 65 72 | 61 74 6f 72 73 20 67 73 |ipt oper|ators gs|
|000023d0| 61 76 65 20 61 6e 64 20 | 67 72 65 73 74 6f 72 65 |ave and |grestore|
|000023e0| 2e 20 42 65 66 6f 72 65 | 20 63 68 61 6e 67 69 6e |. Before| changin|
|000023f0| 67 20 74 68 65 20 63 6c | 69 70 70 69 6e 67 20 70 |g the cl|ipping p|
|00002400| 61 74 68 20 69 6e 20 74 | 68 65 20 50 6f 73 74 53 |ath in t|he PostS|
|00002410| 63 72 69 70 74 20 69 6e | 74 65 72 70 72 65 74 65 |cript in|terprete|
|00002420| 72 2c 20 50 53 57 72 69 | 74 65 72 20 69 73 73 75 |r, PSWri|ter issu|
|00002430| 65 73 20 61 20 67 73 61 | 76 65 20 69 6e 20 6f 72 |es a gsa|ve in or|
|00002440| 64 65 72 20 74 6f 20 73 | 61 76 65 20 74 68 65 20 |der to s|ave the |
|00002450| 6f 6c 64 20 63 6c 69 70 | 2e 20 49 66 20 74 68 65 |old clip|. If the|
|00002460| 20 63 6c 69 70 70 69 6e | 67 20 72 65 63 74 61 6e | clippin|g rectan|
|00002470| 67 6c 65 20 63 68 61 6e | 67 65 73 20 74 6f 20 61 |gle chan|ges to a|
|00002480| 20 6e 65 77 20 63 6c 69 | 70 20 77 68 69 63 68 20 | new cli|p which |
|00002490| 69 73 20 6e 6f 74 20 63 | 6f 6d 70 6c 65 74 65 6c |is not c|ompletel|
|000024a0| 79 20 69 6e 73 65 74 20 | 69 6e 20 74 68 65 20 6f |y inset |in the o|
|000024b0| 6c 64 20 63 6c 69 70 70 | 69 6e 67 20 72 65 63 74 |ld clipp|ing rect|
|000024c0| 61 6e 67 6c 65 2c 20 74 | 68 65 6e 20 61 20 67 72 |angle, t|hen a gr|
|000024d0| 65 73 74 6f 72 65 20 69 | 73 20 69 73 73 75 65 64 |estore i|s issued|
|000024e0| 20 74 6f 20 6f 62 74 61 | 69 6e 20 74 68 65 20 6f | to obta|in the o|
|000024f0| 72 69 67 69 6e 61 6c 20 | 73 61 76 65 64 20 63 6c |riginal |saved cl|
|00002500| 69 70 2e 20 42 65 66 6f | 72 65 20 63 68 61 6e 67 |ip. Befo|re chang|
|00002510| 69 6e 67 20 74 68 65 20 | 63 6c 69 70 2c 20 50 53 |ing the |clip, PS|
|00002520| 57 72 69 74 65 72 20 74 | 68 65 6e 20 69 73 73 75 |Writer t|hen issu|
|00002530| 65 73 20 61 20 67 73 61 | 76 65 20 74 6f 20 73 61 |es a gsa|ve to sa|
|00002540| 76 65 20 74 68 65 20 6f | 72 69 67 69 6e 61 6c 20 |ve the o|riginal |
|00002550| 63 6c 69 70 20 61 67 61 | 69 6e 2e 20 42 79 20 6e |clip aga|in. By n|
|00002560| 65 73 74 69 6e 67 20 63 | 6c 69 70 70 69 6e 67 20 |esting c|lipping |
|00002570| 63 68 61 6e 67 65 73 20 | 69 6e 73 69 64 65 20 6f |changes |inside o|
|00002580| 66 20 67 73 61 76 65 2f | 67 72 65 73 74 6f 72 65 |f gsave/|grestore|
|00002590| 20 70 61 69 72 73 2c 20 | 50 53 57 72 69 74 65 72 | pairs, |PSWriter|
|000025a0| 20 61 76 6f 69 64 73 20 | 65 78 65 63 75 74 69 6f | avoids |executio|
|000025b0| 6e 20 6f 66 20 69 6e 69 | 74 63 6c 69 70 20 61 6e |n of ini|tclip an|
|000025c0| 64 20 74 68 65 72 65 66 | 6f 72 65 20 67 65 6e 65 |d theref|ore gene|
|000025d0| 72 61 74 65 73 20 63 6f | 6e 66 6f 72 6d 69 6e 67 |rates co|nforming|
|000025e0| 20 50 6f 73 74 53 63 72 | 69 70 74 20 6c 61 6e 67 | PostScr|ipt lang|
|000025f0| 75 61 67 65 20 63 6f 64 | 65 2e 20 0d 50 53 57 72 |uage cod|e. .PSWr|
|00002600| 69 74 65 72 20 73 69 6d | 69 6c 61 72 6c 79 20 68 |iter sim|ilarly h|
|00002610| 61 6e 64 6c 65 73 20 63 | 68 61 6e 67 65 73 20 74 |andles c|hanges t|
|00002620| 6f 20 74 68 65 20 6f 72 | 69 65 6e 74 61 74 69 6f |o the or|ientatio|
|00002630| 6e 20 6f 66 20 74 68 65 | 20 50 6f 73 74 53 63 72 |n of the| PostScr|
|00002640| 69 70 74 20 6c 61 6e 67 | 75 61 67 65 20 63 6f 6f |ipt lang|uage coo|
|00002650| 72 64 69 6e 61 74 65 20 | 73 79 73 74 65 6d 20 67 |rdinate |system g|
|00002660| 65 6e 65 72 61 74 65 64 | 20 62 79 20 74 68 65 20 |enerated| by the |
|00002670| 6f 62 6a 65 63 74 20 72 | 6f 74 61 74 69 6f 6e 20 |object r|otation |
|00002680| 70 69 63 74 75 72 65 20 | 63 6f 6d 6d 65 6e 74 73 |picture |comments|
|00002690| 20 28 73 65 65 20 4d 61 | 63 69 6e 74 6f 73 68 20 | (see Ma|cintosh |
|000026a0| 54 65 63 68 6e 69 63 61 | 6c 20 4e 6f 74 65 20 50 |Technica|l Note P|
|000026b0| 69 63 74 75 72 65 20 43 | 6f 6d 6d 65 6e 74 73 d0 |icture C|omments.|
|000026c0| 54 68 65 20 52 65 61 6c | 20 44 65 61 6c 20 28 6f |The Real| Deal (o|
|000026d0| 6c 64 20 23 39 31 29 29 | 20 61 6e 64 20 74 65 78 |ld #91))| and tex|
|000026e0| 74 20 73 63 61 6c 69 6e | 67 2c 20 66 6c 69 70 70 |t scalin|g, flipp|
|000026f0| 69 6e 67 2c 20 6f 72 20 | 72 6f 74 61 74 69 6f 6e |ing, or |rotation|
|00002700| 2e 20 57 68 65 6e 20 61 | 20 74 65 78 74 20 6f 72 |. When a| text or|
|00002710| 20 6f 62 6a 65 63 74 20 | 72 6f 74 61 74 69 6f 6e | object |rotation|
|00002720| 20 62 65 67 69 6e 73 2c | 20 50 53 57 72 69 74 65 | begins,| PSWrite|
|00002730| 72 20 69 73 73 75 65 73 | 20 61 20 67 73 61 76 65 |r issues| a gsave|
|00002740| 20 74 6f 20 73 61 76 65 | 20 74 68 65 20 6f 6c 64 | to save| the old|
|00002750| 20 6f 72 69 65 6e 74 61 | 74 69 6f 6e 20 62 65 66 | orienta|tion bef|
|00002760| 6f 72 65 20 73 63 61 6c | 69 6e 67 20 6f 72 20 72 |ore scal|ing or r|
|00002770| 6f 74 61 74 69 6e 67 20 | 74 68 65 20 63 6f 6f 72 |otating |the coor|
|00002780| 64 69 6e 61 74 65 20 73 | 79 73 74 65 6d 2e 20 4f |dinate s|ystem. O|
|00002790| 6e 63 65 20 74 68 65 20 | 6e 65 77 20 63 6f 6f 72 |nce the |new coor|
|000027a0| 64 69 6e 61 74 65 20 73 | 79 73 74 65 6d 20 69 73 |dinate s|ystem is|
|000027b0| 20 6e 6f 20 6c 6f 6e 67 | 65 72 20 6e 65 65 64 65 | no long|er neede|
|000027c0| 64 2c 20 61 20 67 72 65 | 73 74 6f 72 65 20 69 73 |d, a gre|store is|
|000027d0| 20 65 78 65 63 75 74 65 | 64 20 74 6f 20 72 65 69 | execute|d to rei|
|000027e0| 6e 73 74 61 74 65 20 74 | 68 65 20 73 61 76 65 64 |nstate t|he saved|
|000027f0| 20 63 6f 6f 72 64 69 6e | 61 74 65 20 73 79 73 74 | coordin|ate syst|
|00002800| 65 6d 2e 0d 57 68 65 6e | 20 50 53 57 72 69 74 65 |em..When| PSWrite|
|00002810| 72 20 65 78 65 63 75 74 | 65 73 20 61 20 67 72 65 |r execut|es a gre|
|00002820| 73 74 6f 72 65 20 74 6f | 20 6d 61 6e 61 67 65 20 |store to| manage |
|00002830| 74 68 65 20 67 72 61 70 | 68 69 63 73 20 73 74 61 |the grap|hics sta|
|00002840| 74 65 2c 20 74 68 65 20 | 73 74 61 74 65 20 6f 66 |te, the |state of|
|00002850| 20 74 68 65 20 50 6f 73 | 74 53 63 72 69 70 74 20 | the Pos|tScript |
|00002860| 67 72 61 70 68 69 63 73 | 20 73 74 61 74 65 20 28 |graphics| state (|
|00002870| 63 6f 6c 6f 72 2c 20 6c | 69 6e 65 20 77 69 64 74 |color, l|ine widt|
|00002880| 68 2c 20 73 63 61 6c 65 | 2c 20 6f 72 69 65 6e 74 |h, scale|, orient|
|00002890| 61 74 69 6f 6e 2c 20 6f | 72 69 67 69 6e 20 61 6e |ation, o|rigin an|
|000028a0| 64 20 73 6f 20 66 6f 72 | 74 68 29 20 72 65 76 65 |d so for|th) reve|
|000028b0| 72 74 73 20 74 6f 20 74 | 68 61 74 20 73 61 76 65 |rts to t|hat save|
|000028c0| 64 20 77 69 74 68 20 74 | 68 65 20 6c 61 73 74 20 |d with t|he last |
|000028d0| 67 73 61 76 65 2e 20 50 | 53 57 72 69 74 65 72 20 |gsave. P|SWriter |
|000028e0| 6b 65 65 70 73 20 74 72 | 61 63 6b 20 6f 66 20 74 |keeps tr|ack of t|
|000028f0| 68 65 20 73 61 76 65 64 | 20 67 72 61 70 68 69 63 |he saved| graphic|
|00002900| 73 20 73 74 61 74 65 20 | 6f 6e 20 74 68 65 20 68 |s state |on the h|
|00002910| 6f 73 74 20 61 6e 64 20 | 77 68 65 6e 20 61 20 67 |ost and |when a g|
|00002920| 72 65 73 74 6f 72 65 20 | 69 73 20 65 78 65 63 75 |restore |is execu|
|00002930| 74 65 64 20 62 79 20 50 | 53 57 72 69 74 65 72 20 |ted by P|SWriter |
|00002940| 6f 6e 20 74 68 65 20 70 | 72 69 6e 74 65 72 2c 20 |on the p|rinter, |
|00002950| 69 74 20 75 73 65 73 20 | 69 74 73 20 73 61 76 65 |it uses |its save|
|00002960| 64 20 63 6f 70 79 20 6f | 6e 20 74 68 65 20 68 6f |d copy o|n the ho|
|00002970| 73 74 20 74 6f 20 64 65 | 74 65 72 6d 69 6e 65 20 |st to de|termine |
|00002980| 77 68 61 74 20 70 61 72 | 61 6d 65 74 65 72 73 20 |what par|ameters |
|00002990| 6d 75 73 74 20 62 65 20 | 73 65 74 20 69 6e 20 74 |must be |set in t|
|000029a0| 68 65 20 50 6f 73 74 53 | 63 72 69 70 74 20 69 6e |he PostS|cript in|
|000029b0| 74 65 72 70 72 65 74 65 | 72 20 69 6e 20 6f 72 64 |terprete|r in ord|
|000029c0| 65 72 20 74 6f 20 63 6f | 72 72 65 63 74 6c 79 20 |er to co|rrectly |
|000029d0| 64 72 61 77 20 74 68 65 | 20 6e 65 78 74 20 51 75 |draw the| next Qu|
|000029e0| 69 63 6b 44 72 61 77 20 | 67 72 61 70 68 69 63 73 |ickDraw |graphics|
|000029f0| 20 6f 62 6a 65 63 74 2e | 20 50 53 57 72 69 74 65 | object.| PSWrite|
|00002a00| 72 20 73 65 6e 64 73 20 | 74 68 65 20 6e 65 63 65 |r sends |the nece|
|00002a10| 73 73 61 72 79 20 63 6f | 64 65 20 74 6f 20 73 65 |ssary co|de to se|
|00002a20| 74 20 74 68 65 20 50 6f | 73 74 53 63 72 69 70 74 |t the Po|stScript|
|00002a30| 20 67 72 61 70 68 69 63 | 73 20 73 74 61 74 65 20 | graphic|s state |
|00002a40| 63 6f 72 72 65 63 74 6c | 79 2c 20 74 68 65 6e 20 |correctl|y, then |
|00002a50| 64 72 61 77 73 20 74 68 | 65 20 6f 62 6a 65 63 74 |draws th|e object|
|00002a60| 2e 0d 50 53 57 72 69 74 | 65 72 20 65 6e 63 6c 6f |..PSWrit|er enclo|
|00002a70| 73 65 73 20 65 61 63 68 | 20 70 61 67 65 20 67 65 |ses each| page ge|
|00002a80| 6e 65 72 61 74 65 64 20 | 62 79 20 61 6e 20 61 70 |nerated |by an ap|
|00002a90| 70 6c 69 63 61 74 69 6f | 6e 20 69 6e 73 69 64 65 |plicatio|n inside|
|00002aa0| 20 61 20 73 61 76 65 2f | 72 65 73 74 6f 72 65 20 | a save/|restore |
|00002ab0| 20 70 61 69 72 2e 20 54 | 68 69 73 20 69 73 6f 6c | pair. T|his isol|
|00002ac0| 61 74 65 73 20 65 61 63 | 68 20 70 61 67 65 20 66 |ates eac|h page f|
|00002ad0| 72 6f 6d 20 61 6e 79 20 | 73 74 61 74 65 20 77 68 |rom any |state wh|
|00002ae0| 69 63 68 20 69 73 20 6d | 6f 64 69 66 69 65 64 20 |ich is m|odified |
|00002af0| 6f 6e 20 61 20 70 72 65 | 76 69 6f 75 73 20 70 61 |on a pre|vious pa|
|00002b00| 67 65 20 61 6e 64 20 69 | 73 6f 6c 61 74 65 73 20 |ge and i|solates |
|00002b10| 73 75 62 73 65 71 75 65 | 6e 74 20 70 61 67 65 73 |subseque|nt pages|
|00002b20| 20 66 72 6f 6d 20 74 68 | 65 20 73 74 61 74 65 20 | from th|e state |
|00002b30| 63 68 61 6e 67 65 73 20 | 6f 66 20 74 68 65 20 63 |changes |of the c|
|00002b40| 75 72 72 65 6e 74 20 70 | 61 67 65 2e 20 49 6e 20 |urrent p|age. In |
|00002b50| 6f 72 64 65 72 20 74 6f | 20 63 6f 6e 66 6f 72 6d |order to| conform|
|00002b60| 20 74 6f 20 74 68 65 20 | 44 6f 63 75 6d 65 6e 74 | to the |Document|
|00002b70| 20 53 74 72 75 63 74 75 | 72 69 6e 67 20 43 6f 6e | Structu|ring Con|
|00002b80| 76 65 6e 74 69 6f 6e 73 | 2c 20 74 68 65 20 73 68 |ventions|, the sh|
|00002b90| 6f 77 70 61 67 65 20 6e | 65 63 65 73 73 61 72 79 |owpage n|ecessary|
|00002ba0| 20 74 6f 20 70 72 69 6e | 74 20 61 20 67 69 76 65 | to prin|t a give|
|00002bb0| 6e 20 70 61 67 65 20 69 | 73 20 65 6d 69 74 74 65 |n page i|s emitte|
|00002bc0| 64 20 61 66 74 65 72 20 | 74 68 65 20 70 61 67 65 |d after |the page|
|00002bd0| 20 6c 65 76 65 6c 20 72 | 65 73 74 6f 72 65 2e 20 | level r|estore. |
|00002be0| 54 68 69 73 20 70 72 6f | 70 65 72 6c 79 20 69 73 |This pro|perly is|
|00002bf0| 6f 6c 61 74 65 73 20 65 | 61 63 68 20 70 61 67 65 |olates e|ach page|
|00002c00| 20 66 72 6f 6d 20 70 72 | 65 76 69 6f 75 73 20 70 | from pr|evious p|
|00002c10| 61 67 65 73 20 61 6e 64 | 20 61 6c 73 6f 20 61 6c |ages and| also al|
|00002c20| 6c 6f 77 73 20 61 20 72 | 65 64 65 66 69 6e 69 74 |lows a r|edefinit|
|00002c30| 69 6f 6e 20 6f 66 20 73 | 68 6f 77 70 61 67 65 20 |ion of s|howpage |
|00002c40| 74 6f 20 68 61 6e 64 6c | 65 20 6e 2d 75 70 20 70 |to handl|e n-up p|
|00002c50| 72 69 6e 74 69 6e 67 20 | 61 6e 64 20 6f 74 68 65 |rinting |and othe|
|00002c60| 72 20 70 6f 73 74 2d 70 | 72 6f 63 65 73 73 69 6e |r post-p|rocessin|
|00002c70| 67 20 66 65 61 74 75 72 | 65 73 20 61 76 61 69 6c |g featur|es avail|
|00002c80| 61 62 6c 65 20 20 74 6f | 20 44 53 43 2d 63 6f 6e |able to| DSC-con|
|00002c90| 66 6f 72 6d 69 6e 67 20 | 64 6f 63 75 6d 65 6e 74 |forming |document|
|00002ca0| 73 2e 0d 33 2e 34 09 70 | 61 67 65 20 73 65 74 75 |s..3.4.p|age setu|
|00002cb0| 70 20 61 6e 64 20 70 72 | 69 6e 74 20 64 69 61 6c |p and pr|int dial|
|00002cc0| 6f 67 73 0d 41 73 20 69 | 73 20 61 70 70 61 72 65 |ogs.As i|s appare|
|00002cd0| 6e 74 20 69 6e 20 46 69 | 67 75 72 65 73 20 31 20 |nt in Fi|gures 1 |
|00002ce0| 61 6e 64 20 32 2c 20 50 | 53 57 72 69 74 65 72 20 |and 2, P|SWriter |
|00002cf0| 68 61 73 20 61 20 73 75 | 62 73 74 61 6e 74 69 61 |has a su|bstantia|
|00002d00| 6c 6c 79 20 6e 65 77 20 | 64 69 61 6c 6f 67 20 6c |lly new |dialog l|
|00002d10| 61 79 6f 75 74 20 66 6f | 72 20 62 6f 74 68 20 74 |ayout fo|r both t|
|00002d20| 68 65 20 50 61 67 65 20 | 53 65 74 75 70 20 64 69 |he Page |Setup di|
|00002d30| 61 6c 6f 67 20 61 6e 64 | 20 50 72 69 6e 74 20 64 |alog and| Print d|
|00002d40| 69 61 6c 6f 67 2e 20 42 | 6f 74 68 20 74 68 65 73 |ialog. B|oth thes|
|00002d50| 65 20 64 69 61 6c 6f 67 | 73 20 6e 6f 77 20 68 61 |e dialog|s now ha|
|00002d60| 76 65 20 61 6e 20 6f 70 | 74 69 6f 6e 73 20 64 69 |ve an op|tions di|
|00002d70| 61 6c 6f 67 20 61 73 73 | 6f 63 69 61 74 65 64 20 |alog ass|ociated |
|00002d80| 77 69 74 68 20 74 68 65 | 6d 2e 20 42 65 63 61 75 |with the|m. Becau|
|00002d90| 73 65 20 6f 66 20 74 68 | 65 20 61 64 64 69 74 69 |se of th|e additi|
|00002da0| 6f 6e 61 6c 20 66 75 6e | 63 74 69 6f 6e 61 6c 69 |onal fun|ctionali|
|00002db0| 74 79 20 61 76 61 69 6c | 61 62 6c 65 20 69 6e 20 |ty avail|able in |
|00002dc0| 74 68 65 73 65 20 64 69 | 61 6c 6f 67 73 2c 20 74 |these di|alogs, t|
|00002dd0| 68 65 20 64 69 61 6c 6f | 67 20 69 74 65 6d 20 6e |he dialo|g item n|
|00002de0| 75 6d 62 65 72 73 20 61 | 72 65 20 64 69 66 66 65 |umbers a|re diffe|
|00002df0| 72 65 6e 74 20 74 68 61 | 6e 20 74 68 65 20 6f 6c |rent tha|n the ol|
|00002e00| 64 20 4c 61 73 65 72 57 | 72 69 74 65 72 20 64 72 |d LaserW|riter dr|
|00002e10| 69 76 65 72 2e 0d 54 68 | 65 20 63 6f 6e 74 65 6e |iver..Th|e conten|
|00002e20| 74 73 20 6f 66 20 6d 75 | 63 68 20 6f 66 20 74 68 |ts of mu|ch of th|
|00002e30| 65 20 64 72 69 76 65 72 | 20 64 69 61 6c 6f 67 73 |e driver| dialogs|
|00002e40| 20 64 65 70 65 6e 64 73 | 20 6f 6e 20 74 68 65 20 | depends| on the |
|00002e50| 63 6f 6e 74 65 6e 74 73 | 20 6f 66 20 74 68 65 20 |contents| of the |
|00002e60| 63 75 72 72 65 6e 74 6c | 79 20 63 68 6f 73 65 6e |currentl|y chosen|
|00002e70| 20 70 72 69 6e 74 65 72 | 20 61 6e 64 20 68 65 6e | printer| and hen|
|00002e80| 63 65 20 74 68 65 20 63 | 75 72 72 65 6e 74 6c 79 |ce the c|urrently|
|00002e90| 20 63 68 6f 73 65 6e 20 | 50 6f 73 74 53 63 72 69 | chosen |PostScri|
|00002ea0| 70 74 20 50 72 69 6e 74 | 65 72 20 44 65 73 63 72 |pt Print|er Descr|
|00002eb0| 69 70 74 69 6f 6e 20 28 | 50 50 44 29 20 66 69 6c |iption (|PPD) fil|
|00002ec0| 65 2e 20 20 54 68 65 20 | 75 73 65 72 20 61 73 73 |e. The |user ass|
|00002ed0| 6f 63 69 61 74 65 73 20 | 61 20 50 50 44 20 66 69 |ociates |a PPD fi|
|00002ee0| 6c 65 20 77 69 74 68 20 | 61 20 67 69 76 65 6e 20 |le with |a given |
|00002ef0| 70 72 69 6e 74 65 72 20 | 69 6e 20 74 68 65 20 43 |printer |in the C|
|00002f00| 68 6f 6f 73 65 72 2e 20 | 42 79 20 64 65 66 61 75 |hooser. |By defau|
|00002f10| 6c 74 2c 20 74 68 65 20 | 50 50 44 20 66 69 6c 65 |lt, the |PPD file|
|00002f20| 20 61 73 73 6f 63 69 61 | 74 65 64 20 77 69 74 68 | associa|ted with|
|00002f30| 20 65 61 63 68 20 70 72 | 69 6e 74 65 72 20 69 73 | each pr|inter is|
|00002f40| 20 61 20 67 65 6e 65 72 | 69 63 20 50 50 44 20 66 | a gener|ic PPD f|
|00002f50| 69 6c 65 20 62 75 69 6c | 74 20 69 6e 74 6f 20 74 |ile buil|t into t|
|00002f60| 68 65 20 64 72 69 76 65 | 72 2e 20 54 68 65 20 75 |he drive|r. The u|
|00002f70| 73 65 72 20 6d 61 79 20 | 63 68 6f 6f 73 65 20 61 |ser may |choose a|
|00002f80| 20 64 69 66 66 65 72 65 | 6e 74 20 50 50 44 20 66 | differe|nt PPD f|
|00002f90| 69 6c 65 20 62 79 20 75 | 73 69 6e 67 20 74 68 65 |ile by u|sing the|
|00002fa0| 20 53 65 74 75 70 20 62 | 75 74 74 6f 6e 20 69 6e | Setup b|utton in|
|00002fb0| 20 74 68 65 20 43 68 6f | 6f 73 65 72 20 61 6e 64 | the Cho|oser and|
|00002fc0| 20 65 69 74 68 65 72 20 | 61 75 74 6f 6d 61 74 69 | either |automati|
|00002fd0| 63 61 6c 6c 79 20 6f 72 | 20 6d 61 6e 75 61 6c 6c |cally or| manuall|
|00002fe0| 79 20 73 65 74 20 75 70 | 20 74 68 65 20 70 72 69 |y set up| the pri|
|00002ff0| 6e 74 65 72 2e 20 4f 6e | 63 65 20 61 20 50 50 44 |nter. On|ce a PPD|
|00003000| 20 66 69 6c 65 20 69 73 | 20 61 73 73 6f 63 69 61 | file is| associa|
|00003010| 74 65 64 20 77 69 74 68 | 20 61 20 70 72 69 6e 74 |ted with| a print|
|00003020| 65 72 2c 20 50 53 57 72 | 69 74 65 72 20 72 65 6d |er, PSWr|iter rem|
|00003030| 65 6d 62 65 72 73 20 74 | 68 69 73 20 69 6e 20 69 |embers t|his in i|
|00003040| 74 73 20 70 72 65 66 65 | 72 65 6e 63 65 73 20 66 |ts prefe|rences f|
|00003050| 69 6c 65 20 73 6f 20 77 | 68 65 6e 20 74 68 61 74 |ile so w|hen that|
|00003060| 20 70 72 69 6e 74 65 72 | 20 69 73 20 63 68 6f 73 | printer| is chos|
|00003070| 65 6e 20 61 67 61 69 6e | 2c 20 74 68 65 20 63 6f |en again|, the co|
|00003080| 72 72 65 63 74 20 50 50 | 44 20 66 69 6c 65 20 69 |rrect PP|D file i|
|00003090| 73 20 61 75 74 6f 6d 61 | 74 69 63 61 6c 6c 79 20 |s automa|tically |
|000030a0| 75 73 65 64 2e 0d 49 6e | 20 6f 72 64 65 72 20 74 |used..In| order t|
|000030b0| 6f 20 75 73 65 20 61 20 | 67 69 76 65 6e 20 50 50 |o use a |given PP|
|000030c0| 44 20 66 69 6c 65 2c 20 | 50 53 57 72 69 74 65 72 |D file, |PSWriter|
|000030d0| 20 6d 75 73 74 20 66 69 | 72 73 74 20 70 61 72 73 | must fi|rst pars|
|000030e0| 65 20 74 68 65 20 63 6f | 6e 74 65 6e 74 73 20 6f |e the co|ntents o|
|000030f0| 66 20 74 68 65 20 66 69 | 6c 65 20 61 6e 64 20 62 |f the fi|le and b|
|00003100| 75 69 6c 64 20 74 68 65 | 20 64 61 74 61 20 73 74 |uild the| data st|
|00003110| 72 75 63 74 75 72 65 73 | 20 6e 65 63 65 73 73 61 |ructures| necessa|
|00003120| 72 79 20 66 6f 72 20 64 | 72 69 76 69 6e 67 20 74 |ry for d|riving t|
|00003130| 68 65 20 75 73 65 72 20 | 69 6e 74 65 72 66 61 63 |he user |interfac|
|00003140| 65 2e 20 42 65 63 61 75 | 73 65 20 6f 66 20 6d 65 |e. Becau|se of me|
|00003150| 6d 6f 72 79 20 6c 69 6d | 69 74 61 74 69 6f 6e 73 |mory lim|itations|
|00003160| 20 69 6e 20 6d 61 6e 79 | 20 61 70 70 6c 69 63 61 | in many| applica|
|00003170| 74 69 6f 6e 73 2c 20 74 | 68 65 20 50 50 44 20 66 |tions, t|he PPD f|
|00003180| 69 6c 65 20 69 73 20 70 | 61 72 73 65 64 20 69 6e |ile is p|arsed in|
|00003190| 20 74 68 65 20 43 68 6f | 6f 73 65 72 2e 20 57 68 | the Cho|oser. Wh|
|000031a0| 65 6e 20 74 68 65 20 75 | 73 65 72 20 73 65 6c 65 |en the u|ser sele|
|000031b0| 63 74 73 20 61 20 6e 65 | 77 20 70 72 69 6e 74 65 |cts a ne|w printe|
|000031c0| 72 20 69 6e 20 74 68 65 | 20 43 68 6f 6f 73 65 72 |r in the| Chooser|
|000031d0| 2c 20 50 53 57 72 69 74 | 65 72 20 70 61 72 73 65 |, PSWrit|er parse|
|000031e0| 73 20 74 68 65 20 50 50 | 44 20 66 69 6c 65 20 61 |s the PP|D file a|
|000031f0| 73 73 6f 63 69 61 74 65 | 64 20 77 69 74 68 20 74 |ssociate|d with t|
|00003200| 68 61 74 20 70 72 69 6e | 74 65 72 20 61 6e 64 20 |hat prin|ter and |
|00003210| 77 72 69 74 65 73 20 74 | 68 65 20 70 61 72 73 65 |writes t|he parse|
|00003220| 64 20 64 61 74 61 20 74 | 6f 20 74 68 65 20 64 61 |d data t|o the da|
|00003230| 74 61 20 66 6f 72 6b 20 | 6f 66 20 74 68 65 20 70 |ta fork |of the p|
|00003240| 72 65 66 65 72 65 6e 63 | 65 73 20 66 69 6c 65 2e |referenc|es file.|
|00003250| 20 20 53 65 6c 65 63 74 | 69 6e 67 20 61 20 64 69 | Select|ing a di|
|00003260| 66 66 65 72 65 6e 74 20 | 70 72 69 6e 74 65 72 20 |fferent |printer |
|00003270| 69 6e 20 74 68 65 20 43 | 68 6f 6f 73 65 72 20 63 |in the C|hooser c|
|00003280| 61 75 73 65 73 20 50 53 | 57 72 69 74 65 72 20 74 |auses PS|Writer t|
|00003290| 6f 20 70 61 72 73 65 20 | 74 68 65 20 50 50 44 20 |o parse |the PPD |
|000032a0| 66 69 6c 65 20 66 6f 72 | 20 74 68 65 20 6e 65 77 |file for| the new|
|000032b0| 20 70 72 69 6e 74 65 72 | 20 28 69 66 20 74 68 65 | printer| (if the|
|000032c0| 20 50 50 44 20 66 69 6c | 65 20 69 73 20 61 20 64 | PPD fil|e is a d|
|000032d0| 69 66 66 65 72 65 6e 74 | 20 66 69 6c 65 20 74 68 |ifferent| file th|
|000032e0| 61 6e 20 74 68 65 20 70 | 72 65 76 69 6f 75 73 20 |an the p|revious |
|000032f0| 70 72 69 6e 74 65 72 d5 | 73 20 50 50 44 20 66 69 |printer.|s PPD fi|
|00003300| 6c 65 29 20 61 6e 64 20 | 6f 76 65 72 77 72 69 74 |le) and |overwrit|
|00003310| 65 20 74 68 65 20 63 6f | 6e 74 65 6e 74 73 20 6f |e the co|ntents o|
|00003320| 66 20 74 68 65 20 70 72 | 65 66 65 72 65 6e 63 65 |f the pr|eference|
|00003330| 73 20 66 69 6c 65 20 64 | 61 74 61 20 66 6f 72 6b |s file d|ata fork|
|00003340| 2e 0d 57 68 65 6e 20 61 | 6e 20 61 70 70 6c 69 63 |..When a|n applic|
|00003350| 61 74 69 6f 6e 20 63 61 | 6c 6c 73 20 50 72 53 74 |ation ca|lls PrSt|
|00003360| 6c 44 69 61 6c 6f 67 2c | 20 74 68 65 20 70 72 65 |lDialog,| the pre|
|00003370| 2d 70 61 72 73 65 64 20 | 63 6f 6e 74 65 6e 74 73 |-parsed |contents|
|00003380| 20 6f 66 20 74 68 65 20 | 6f 66 20 50 50 44 20 66 | of the |of PPD f|
|00003390| 69 6c 65 20 72 65 73 69 | 64 69 6e 67 20 69 6e 20 |ile resi|ding in |
|000033a0| 74 68 65 20 64 61 74 61 | 20 66 6f 72 6b 20 6f 66 |the data| fork of|
|000033b0| 20 74 68 65 20 70 72 65 | 66 65 72 65 6e 63 65 73 | the pre|ferences|
|000033c0| 20 66 69 6c 65 20 61 72 | 65 20 75 73 65 64 20 74 | file ar|e used t|
|000033d0| 6f 20 62 75 69 6c 64 20 | 74 68 65 20 63 6f 6e 74 |o build |the cont|
|000033e0| 65 6e 74 73 20 6f 66 20 | 74 68 65 20 50 61 67 65 |ents of |the Page|
|000033f0| 20 53 65 74 75 70 20 64 | 69 61 6c 6f 67 2e 20 46 | Setup d|ialog. F|
|00003400| 6f 72 20 65 78 61 6d 70 | 6c 65 2c 20 74 68 65 20 |or examp|le, the |
|00003410| 6c 69 73 74 20 6f 66 20 | 70 61 70 65 72 20 73 69 |list of |paper si|
|00003420| 7a 65 73 20 28 61 6e 64 | 20 74 68 65 20 63 6f 72 |zes (and| the cor|
|00003430| 72 65 73 70 6f 6e 64 69 | 6e 67 20 72 50 61 70 65 |respondi|ng rPape|
|00003440| 72 20 61 6e 64 20 72 50 | 61 67 65 20 72 65 63 74 |r and rP|age rect|
|00003450| 61 6e 67 6c 65 73 29 20 | 61 72 65 20 62 75 69 6c |angles) |are buil|
|00003460| 74 20 62 61 73 65 64 20 | 6f 6e 20 74 68 65 20 63 |t based |on the c|
|00003470| 6f 6e 74 65 6e 74 73 20 | 6f 66 20 74 68 65 20 50 |ontents |of the P|
|00003480| 50 44 20 66 69 6c 65 20 | 66 6f 72 20 74 68 65 20 |PD file |for the |
|00003490| 6c 61 73 74 20 70 72 69 | 6e 74 65 72 20 63 68 6f |last pri|nter cho|
|000034a0| 73 65 6e 20 69 6e 20 74 | 68 65 20 43 68 6f 6f 73 |sen in t|he Choos|
|000034b0| 65 72 20 28 63 61 6c 6c | 65 64 20 68 65 72 65 20 |er (call|ed here |
|000034c0| 74 68 65 20 74 61 72 67 | 65 74 20 70 72 69 6e 74 |the targ|et print|
|000034d0| 65 72 29 2e 20 57 68 65 | 6e 20 61 6e 20 61 70 70 |er). Whe|n an app|
|000034e0| 6c 69 63 61 74 69 6f 6e | 20 63 61 6c 6c 73 20 50 |lication| calls P|
|000034f0| 72 4a 6f 62 44 69 61 6c | 6f 67 ca 74 68 65 20 63 |rJobDial|og.the c|
|00003500| 6f 6e 74 65 6e 74 73 20 | 6f 66 20 74 68 65 20 70 |ontents |of the p|
|00003510| 72 65 2d 70 61 72 73 65 | 64 20 63 6f 6e 74 65 6e |re-parse|d conten|
|00003520| 74 73 20 6f 66 20 74 68 | 65 20 50 50 44 20 66 69 |ts of th|e PPD fi|
|00003530| 6c 65 20 61 72 65 20 75 | 73 65 64 20 74 6f 20 66 |le are u|sed to f|
|00003540| 69 6c 6c 20 69 6e 20 74 | 68 65 20 69 6e 70 75 74 |ill in t|he input|
|00003550| 20 62 69 6e 20 6c 69 73 | 74 2c 20 69 6e 64 69 63 | bin lis|t, indic|
|00003560| 61 74 65 20 74 68 65 20 | 61 62 69 6c 69 74 79 20 |ate the |ability |
|00003570| 74 6f 20 68 61 6e 64 6c | 65 20 50 6f 73 74 53 63 |to handl|e PostSc|
|00003580| 72 69 70 74 20 66 61 78 | 2c 20 61 6e 64 20 66 69 |ript fax|, and fi|
|00003590| 6c 6c 20 69 6e 20 74 68 | 65 20 63 6f 6e 74 65 6e |ll in th|e conten|
|000035a0| 74 73 20 6f 66 20 74 68 | 65 20 50 72 69 6e 74 20 |ts of th|e Print |
|000035b0| 4f 70 74 69 6f 6e 73 20 | 64 69 61 6c 6f 67 20 69 |Options |dialog i|
|000035c0| 66 20 6e 65 63 65 73 73 | 61 72 79 2e 0d 33 2e 35 |f necess|ary..3.5|
|000035d0| 09 63 6f 6d 6d 75 6e 69 | 63 61 74 69 6f 6e 73 0d |.communi|cations.|
|000035e0| 50 53 57 72 69 74 65 72 | 20 63 6f 6d 6d 75 6e 69 |PSWriter| communi|
|000035f0| 63 61 74 65 73 20 77 69 | 74 68 20 61 20 50 6f 73 |cates wi|th a Pos|
|00003600| 74 53 63 72 69 70 74 20 | 70 72 69 6e 74 65 72 20 |tScript |printer |
|00003610| 6f 76 65 72 20 41 70 70 | 6c 65 54 61 6c 6b 20 77 |over App|leTalk w|
|00003620| 69 74 68 20 74 68 65 20 | 50 41 50 20 70 72 6f 74 |ith the |PAP prot|
|00003630| 6f 63 6f 6c 2e 20 4c 69 | 6b 65 20 74 68 65 20 6f |ocol. Li|ke the o|
|00003640| 6c 64 20 4c 61 73 65 72 | 57 72 69 74 65 72 20 64 |ld Laser|Writer d|
|00003650| 72 69 76 65 72 2c 20 69 | 74 20 64 6f 65 73 20 73 |river, i|t does s|
|00003660| 6f 20 62 79 20 63 61 6c | 6c 69 6e 67 20 69 74 73 |o by cal|ling its|
|00003670| 20 6f 77 6e 20 50 44 45 | 46 20 31 30 20 72 65 73 | own PDE|F 10 res|
|00003680| 6f 75 72 63 65 20 28 74 | 68 65 20 50 41 50 20 63 |ource (t|he PAP c|
|00003690| 6f 64 65 29 20 69 6e 20 | 6f 72 64 65 72 20 74 6f |ode) in |order to|
|000036a0| 20 63 6f 6d 6d 75 6e 69 | 63 61 74 65 20 77 69 74 | communi|cate wit|
|000036b0| 68 20 61 6e 20 41 70 70 | 6c 65 54 61 6c 6b 20 70 |h an App|leTalk p|
|000036c0| 72 69 6e 74 65 72 2e 20 | 54 68 65 20 50 53 57 72 |rinter. |The PSWr|
|000036d0| 69 74 65 72 20 64 72 69 | 76 65 72 20 61 72 63 68 |iter dri|ver arch|
|000036e0| 69 74 65 63 74 75 72 65 | 20 61 6c 6c 6f 77 73 20 |itecture| allows |
|000036f0| 66 6f 72 20 64 72 69 76 | 65 72 73 20 74 6f 20 62 |for driv|ers to b|
|00003700| 65 20 62 75 69 6c 74 20 | 77 68 69 63 68 20 73 75 |e built |which su|
|00003710| 70 70 6f 72 74 20 6f 74 | 68 65 72 20 63 6f 6d 6d |pport ot|her comm|
|00003720| 75 6e 69 63 61 74 69 6f | 6e 73 20 63 68 61 6e 6e |unicatio|ns chann|
|00003730| 65 6c 73 2e 20 49 6e 20 | 6f 72 64 65 72 20 74 6f |els. In |order to|
|00003740| 20 63 6f 6d 6d 75 6e 69 | 63 61 74 65 20 6f 76 65 | communi|cate ove|
|00003750| 72 20 74 68 65 73 65 20 | 63 68 61 6e 6e 65 6c 73 |r these |channels|
|00003760| 2c 20 50 53 57 72 69 74 | 65 72 20 6d 61 79 20 68 |, PSWrit|er may h|
|00003770| 61 76 65 20 61 20 50 44 | 45 46 20 31 30 20 72 65 |ave a PD|EF 10 re|
|00003780| 73 6f 75 72 63 65 20 64 | 69 66 66 65 72 65 6e 74 |source d|ifferent|
|00003790| 20 66 72 6f 6d 20 74 68 | 61 74 20 69 6e 20 74 68 | from th|at in th|
|000037a0| 65 20 6f 6c 64 20 4c 61 | 73 65 72 57 72 69 74 65 |e old La|serWrite|
|000037b0| 72 20 64 72 69 76 65 72 | 2e 20 49 6e 20 74 68 65 |r driver|. In the|
|000037c0| 73 65 20 63 61 73 65 73 | 2c 20 74 68 65 20 69 6e |se cases|, the in|
|000037d0| 74 65 72 66 61 63 65 20 | 74 6f 20 74 68 65 20 50 |terface |to the P|
|000037e0| 44 45 46 20 31 30 20 72 | 65 73 6f 75 72 63 65 20 |DEF 10 r|esource |
|000037f0| 69 73 20 69 64 65 6e 74 | 69 63 61 6c 20 74 6f 20 |is ident|ical to |
|00003800| 74 68 65 20 50 41 50 20 | 63 6f 64 65 20 62 75 74 |the PAP |code but|
|00003810| 20 74 68 65 20 75 6e 64 | 65 72 6c 79 69 6e 67 20 | the und|erlying |
|00003820| 63 6f 64 65 20 63 6f 6d | 6d 75 6e 69 63 61 74 65 |code com|municate|
|00003830| 73 20 76 69 61 20 6d 65 | 74 68 6f 64 73 20 6f 74 |s via me|thods ot|
|00003840| 68 65 72 20 74 68 61 6e | 20 41 70 70 6c 65 54 61 |her than| AppleTa|
|00003850| 6c 6b 2e 0d 34 09 63 6f | 6d 70 61 74 69 62 69 6c |lk..4.co|mpatibil|
|00003860| 69 74 79 20 69 73 73 75 | 65 73 0d 4d 61 6e 79 20 |ity issu|es.Many |
|00003870| 61 70 70 6c 69 63 61 74 | 69 6f 6e 73 20 67 65 6e |applicat|ions gen|
|00003880| 65 72 61 74 65 20 6f 6e | 6c 79 20 51 75 69 63 6b |erate on|ly Quick|
|00003890| 44 72 61 77 20 64 72 61 | 77 69 6e 67 20 61 6e 64 |Draw dra|wing and|
|000038a0| 20 64 6f 20 6e 6f 74 20 | 67 65 6e 65 72 61 74 65 | do not |generate|
|000038b0| 20 61 6e 79 20 63 75 73 | 74 6f 6d 20 50 6f 73 74 | any cus|tom Post|
|000038c0| 53 63 72 69 70 74 20 6c | 61 6e 67 75 61 67 65 20 |Script l|anguage |
|000038d0| 63 6f 64 65 2e 20 20 54 | 68 65 73 65 20 61 70 70 |code. T|hese app|
|000038e0| 6c 69 63 61 74 69 6f 6e | 73 20 61 72 65 20 74 68 |lication|s are th|
|000038f0| 65 20 6c 65 61 73 74 20 | 6c 69 6b 65 6c 79 20 74 |e least |likely t|
|00003900| 6f 20 73 75 66 66 65 72 | 20 63 6f 6d 70 61 74 69 |o suffer| compati|
|00003910| 62 69 6c 69 74 79 20 70 | 72 6f 62 6c 65 6d 73 20 |bility p|roblems |
|00003920| 77 69 74 68 20 61 6e 79 | 20 6e 65 77 20 50 6f 73 |with any| new Pos|
|00003930| 74 53 63 72 69 70 74 20 | 70 72 69 6e 74 65 72 20 |tScript |printer |
|00003940| 64 72 69 76 65 72 2e 20 | 54 68 65 20 70 72 6f 62 |driver. |The prob|
|00003950| 6c 65 6d 73 20 74 68 65 | 73 65 20 61 70 70 6c 69 |lems the|se appli|
|00003960| 63 61 74 69 6f 6e 73 20 | 65 6e 63 6f 75 6e 74 65 |cations |encounte|
|00003970| 72 20 61 72 65 20 67 65 | 6e 65 72 61 6c 20 63 6f |r are ge|neral co|
|00003980| 6d 70 61 74 69 62 69 6c | 69 74 79 20 70 72 6f 62 |mpatibil|ity prob|
|00003990| 6c 65 6d 73 20 73 75 63 | 68 20 61 73 20 72 65 6c |lems suc|h as rel|
|000039a0| 69 61 6e 63 65 20 75 70 | 6f 6e 20 73 70 65 63 69 |iance up|on speci|
|000039b0| 66 69 63 20 64 69 61 6c | 6f 67 20 69 74 65 6d 73 |fic dial|og items|
|000039c0| 20 6f 72 20 73 74 72 61 | 6e 67 65 20 61 73 73 75 | or stra|nge assu|
|000039d0| 6d 70 74 69 6f 6e 73 20 | 61 62 6f 75 74 20 74 68 |mptions |about th|
|000039e0| 65 20 70 72 69 6e 74 20 | 72 65 63 6f 72 64 2e 20 |e print |record. |
|000039f0| 41 70 70 6c 65 20 68 61 | 73 20 63 6c 65 61 72 6c |Apple ha|s clearl|
|00003a00| 79 20 73 70 65 63 69 66 | 69 65 64 20 6d 61 6e 79 |y specif|ied many|
|00003a10| 20 61 72 65 61 73 20 6f | 66 20 d4 70 72 69 6e 74 | areas o|f .print|
|00003a20| 20 63 72 69 6d 65 73 d5 | 20 77 68 69 63 68 20 61 | crimes.| which a|
|00003a30| 72 65 20 6c 69 6b 65 6c | 79 20 74 6f 20 63 61 75 |re likel|y to cau|
|00003a40| 73 65 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 69 |se appli|cation i|
|00003a50| 6e 63 6f 6d 70 61 74 69 | 62 69 6c 69 74 79 20 77 |ncompati|bility w|
|00003a60| 69 74 68 20 6e 65 77 20 | 64 72 69 76 65 72 73 2e |ith new |drivers.|
|00003a70| 20 53 65 65 20 73 65 63 | 74 69 6f 6e 20 36 20 66 | See sec|tion 6 f|
|00003a80| 6f 72 20 61 20 73 75 6d | 6d 61 72 79 20 6f 66 20 |or a sum|mary of |
|00003a90| 64 6f 63 75 6d 65 6e 74 | 73 20 77 68 69 63 68 20 |document|s which |
|00003aa0| 64 69 73 63 75 73 73 20 | 73 75 63 68 20 70 72 69 |discuss |such pri|
|00003ab0| 6e 74 20 63 72 69 6d 65 | 73 2e 0d 41 70 70 6c 69 |nt crime|s..Appli|
|00003ac0| 63 61 74 69 6f 6e 73 20 | 77 68 69 63 68 20 61 72 |cations |which ar|
|00003ad0| 65 20 6d 6f 72 65 20 6c | 69 6b 65 6c 79 20 74 6f |e more l|ikely to|
|00003ae0| 20 73 75 66 66 65 72 20 | 63 6f 6d 70 61 74 69 62 | suffer |compatib|
|00003af0| 69 6c 69 74 79 20 70 72 | 6f 62 6c 65 6d 73 20 77 |ility pr|oblems w|
|00003b00| 69 74 68 20 50 53 57 72 | 69 74 65 72 20 61 72 65 |ith PSWr|iter are|
|00003b10| 20 74 68 6f 73 65 20 61 | 70 70 6c 69 63 61 74 69 | those a|pplicati|
|00003b20| 6f 6e 73 20 77 68 69 63 | 68 20 67 65 6e 65 72 61 |ons whic|h genera|
|00003b30| 74 65 20 74 68 65 69 72 | 20 6f 77 6e 20 63 75 73 |te their| own cus|
|00003b40| 74 6f 6d 20 50 6f 73 74 | 53 63 72 69 70 74 20 6c |tom Post|Script l|
|00003b50| 61 6e 67 75 61 67 65 20 | 63 6f 64 65 2e 20 4d 6f |anguage |code. Mo|
|00003b60| 73 74 20 6f 66 20 74 68 | 65 20 70 72 6f 62 6c 65 |st of th|e proble|
|00003b70| 6d 73 20 73 75 63 68 20 | 61 70 70 6c 69 63 61 74 |ms such |applicat|
|00003b80| 69 6f 6e 73 20 6d 61 79 | 20 65 6e 63 6f 75 6e 74 |ions may| encount|
|00003b90| 65 72 20 61 72 65 20 64 | 65 73 63 72 69 62 65 64 |er are d|escribed|
|00003ba0| 20 68 65 72 65 2e 20 57 | 68 69 6c 65 20 74 68 69 | here. W|hile thi|
|00003bb0| 73 20 69 73 20 6e 6f 74 | 20 61 6e 20 65 78 68 61 |s is not| an exha|
|00003bc0| 75 73 74 69 76 65 20 6c | 69 73 74 20 6f 66 20 70 |ustive l|ist of p|
|00003bd0| 72 6f 62 6c 65 6d 73 2c | 20 74 68 65 73 65 20 61 |roblems,| these a|
|00003be0| 72 65 20 73 6f 6d 65 20 | 61 72 65 61 73 20 74 6f |re some |areas to|
|00003bf0| 20 65 78 61 6d 69 6e 65 | 20 69 6e 20 79 6f 75 72 | examine| in your|
|00003c00| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 20 74 6f 20 | applica|tion to |
|00003c10| 65 6e 73 75 72 65 20 74 | 68 65 72 65 20 61 72 65 |ensure t|here are|
|00003c20| 20 6e 6f 20 70 72 6f 62 | 6c 65 6d 73 2e 0d 4e 6f | no prob|lems..No|
|00003c30| 74 65 20 74 68 61 74 20 | 6d 61 6e 79 20 6f 66 20 |te that |many of |
|00003c40| 74 68 65 20 64 69 66 66 | 65 72 65 6e 63 65 73 20 |the diff|erences |
|00003c50| 62 65 74 77 65 65 6e 20 | 74 68 65 20 6f 6c 64 20 |between |the old |
|00003c60| 4c 61 73 65 72 57 72 69 | 74 65 72 20 64 72 69 76 |LaserWri|ter driv|
|00003c70| 65 72 20 61 6e 64 20 50 | 53 57 72 69 74 65 72 20 |er and P|SWriter |
|00003c80| 61 6c 73 6f 20 61 70 70 | 6c 79 20 74 6f 20 74 68 |also app|ly to th|
|00003c90| 65 20 70 72 69 6e 74 69 | 6e 67 20 61 72 63 68 69 |e printi|ng archi|
|00003ca0| 74 65 63 74 75 72 65 20 | 75 6e 64 65 72 20 51 75 |tecture |under Qu|
|00003cb0| 69 63 6b 44 72 61 77 20 | 47 58 2e 20 4d 61 6e 79 |ickDraw |GX. Many|
|00003cc0| 20 6f 66 20 74 68 65 20 | 63 6f 6d 70 61 74 69 62 | of the |compatib|
|00003cd0| 69 6c 69 74 79 20 69 73 | 73 75 65 73 20 77 68 69 |ility is|sues whi|
|00003ce0| 63 68 20 61 72 65 20 70 | 72 65 73 65 6e 74 20 77 |ch are p|resent w|
|00003cf0| 69 74 68 20 50 53 57 72 | 69 74 65 72 20 61 73 20 |ith PSWr|iter as |
|00003d00| 63 6f 6d 70 61 72 65 64 | 20 74 6f 20 74 68 65 20 |compared| to the |
|00003d10| 6f 6c 64 20 4c 61 73 65 | 72 57 72 69 74 65 72 20 |old Lase|rWriter |
|00003d20| 64 72 69 76 65 72 20 61 | 72 65 20 61 6c 73 6f 20 |driver a|re also |
|00003d30| 70 72 65 73 65 6e 74 20 | 77 69 74 68 20 74 68 65 |present |with the|
|00003d40| 20 51 75 69 63 6b 44 72 | 61 77 20 47 58 20 50 6f | QuickDr|aw GX Po|
|00003d50| 73 74 53 63 72 69 70 74 | 20 70 72 69 6e 74 65 72 |stScript| printer|
|00003d60| 20 64 72 69 76 65 72 20 | 61 73 20 63 6f 6d 70 61 | driver |as compa|
|00003d70| 72 65 64 20 74 6f 20 74 | 68 65 20 6f 6c 64 20 4c |red to t|he old L|
|00003d80| 61 73 65 72 57 72 69 74 | 65 72 20 64 72 69 76 65 |aserWrit|er drive|
|00003d90| 72 2e 0d 34 2e 31 09 69 | 64 65 6e 74 69 66 79 69 |r..4.1.i|dentifyi|
|00003da0| 6e 67 20 74 68 65 20 69 | 64 65 6e 74 69 74 79 20 |ng the i|dentity |
|00003db0| 6f 66 20 74 68 65 20 64 | 72 69 76 65 72 0d 50 53 |of the d|river.PS|
|00003dc0| 57 72 69 74 65 72 20 61 | 6e 64 20 74 68 65 20 6f |Writer a|nd the o|
|00003dd0| 6c 64 20 4c 61 73 65 72 | 57 72 69 74 65 72 20 64 |ld Laser|Writer d|
|00003de0| 72 69 76 65 72 20 61 72 | 65 20 69 6e 74 65 6e 64 |river ar|e intend|
|00003df0| 65 64 20 74 6f 20 6c 6f | 6f 6b 20 69 64 65 6e 74 |ed to lo|ok ident|
|00003e00| 69 63 61 6c 20 74 6f 20 | 61 70 70 6c 69 63 61 74 |ical to |applicat|
|00003e10| 69 6f 6e 73 2e 20 49 6e | 20 70 61 72 74 69 63 75 |ions. In| particu|
|00003e20| 6c 61 72 20 74 68 65 20 | 77 64 65 76 20 66 69 65 |lar the |wdev fie|
|00003e30| 6c 64 20 6f 66 20 74 68 | 65 20 70 72 69 6e 74 20 |ld of th|e print |
|00003e40| 72 65 63 6f 72 64 20 69 | 73 20 74 68 65 20 73 61 |record i|s the sa|
|00003e50| 6d 65 20 73 6f 20 74 68 | 61 74 20 61 70 70 6c 69 |me so th|at appli|
|00003e60| 63 61 74 69 6f 6e 73 20 | 69 64 65 6e 74 69 66 79 |cations |identify|
|00003e70| 20 50 53 57 72 69 74 65 | 72 20 61 73 20 61 20 50 | PSWrite|r as a P|
|00003e80| 6f 73 74 53 63 72 69 70 | 74 20 70 72 69 6e 74 65 |ostScrip|t printe|
|00003e90| 72 20 64 72 69 76 65 72 | 2e 20 49 6e 20 73 6f 6d |r driver|. In som|
|00003ea0| 65 20 63 61 73 65 73 20 | 69 74 20 6d 61 79 20 62 |e cases |it may b|
|00003eb0| 65 20 75 73 65 66 75 6c | 20 74 6f 20 64 65 74 65 |e useful| to dete|
|00003ec0| 63 74 20 74 68 61 74 20 | 50 53 57 72 69 74 65 72 |ct that |PSWriter|
|00003ed0| 20 69 73 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 | is the |current |
|00003ee0| 64 72 69 76 65 72 2c 20 | 6e 6f 74 20 74 68 65 20 |driver, |not the |
|00003ef0| 6f 6c 64 20 4c 61 73 65 | 72 57 72 69 74 65 72 20 |old Lase|rWriter |
|00003f00| 64 72 69 76 65 72 2e 20 | 54 68 69 73 20 6d 61 79 |driver. |This may|
|00003f10| 20 62 65 20 64 6f 6e 65 | 20 62 79 20 63 68 65 63 | be done| by chec|
|00003f20| 6b 69 6e 67 20 74 68 65 | 20 72 65 73 75 6c 74 20 |king the| result |
|00003f30| 6f 66 20 74 68 65 20 4d | 61 63 69 6e 74 6f 73 68 |of the M|acintosh|
|00003f40| 20 54 6f 6f 6c 62 6f 78 | 20 66 75 6e 63 74 69 6f | Toolbox| functio|
|00003f50| 6e 20 50 72 44 72 76 72 | 56 65 72 73 28 29 2e 20 |n PrDrvr|Vers(). |
|00003f60| 54 68 65 20 6f 6c 64 20 | 4c 61 73 65 72 57 72 69 |The old |LaserWri|
|00003f70| 74 65 72 20 64 72 69 76 | 65 72 20 76 65 72 73 69 |ter driv|er versi|
|00003f80| 6f 6e 20 69 73 20 61 6c | 77 61 79 73 20 6c 65 73 |on is al|ways les|
|00003f90| 73 20 74 68 61 6e 20 38 | 30 2c 20 77 68 69 6c 65 |s than 8|0, while|
|00003fa0| 20 74 68 65 20 50 53 57 | 72 69 74 65 72 20 76 65 | the PSW|riter ve|
|00003fb0| 72 73 69 6f 6e 20 69 73 | 20 67 72 65 61 74 65 72 |rsion is| greater|
|00003fc0| 20 74 68 61 6e 20 6f 72 | 20 65 71 75 61 6c 20 74 | than or| equal t|
|00003fd0| 6f 20 38 30 20 61 6e 64 | 20 6c 65 73 73 20 74 68 |o 80 and| less th|
|00003fe0| 61 6e 20 31 30 30 2e 20 | 0d 34 2e 32 09 55 73 65 |an 100. |.4.2.Use|
|00003ff0| 20 6f 66 20 4c 61 73 65 | 72 50 72 65 70 20 70 72 | of Lase|rPrep pr|
|00004000| 6f 63 65 64 75 72 65 73 | 0d 50 53 57 72 69 74 65 |ocedures|.PSWrite|
|00004010| 72 20 64 6f 65 73 20 6e | 6f 74 20 75 73 65 20 74 |r does n|ot use t|
|00004020| 68 65 20 73 61 6d 65 20 | 50 6f 73 74 53 63 72 69 |he same |PostScri|
|00004030| 70 74 20 6c 61 6e 67 75 | 61 67 65 20 70 72 6f 63 |pt langu|age proc|
|00004040| 65 64 75 72 65 73 20 61 | 73 20 74 68 65 20 6f 6c |edures a|s the ol|
|00004050| 64 20 4c 61 73 65 72 57 | 72 69 74 65 72 20 64 72 |d LaserW|riter dr|
|00004060| 69 76 65 72 20 77 68 65 | 6e 20 67 65 6e 65 72 61 |iver whe|n genera|
|00004070| 74 69 6e 67 20 69 74 73 | 20 50 6f 73 74 53 63 72 |ting its| PostScr|
|00004080| 69 70 74 20 6c 61 6e 67 | 75 61 67 65 20 63 6f 64 |ipt lang|uage cod|
|00004090| 65 2e 20 49 6e 20 6f 74 | 68 65 72 20 77 6f 72 64 |e. In ot|her word|
|000040a0| 73 2c 20 69 74 20 64 6f | 65 73 20 6e 6f 74 20 75 |s, it do|es not u|
|000040b0| 73 65 20 d4 4c 61 73 65 | 72 50 72 65 70 d5 2e 20 |se .Lase|rPrep.. |
|000040c0| 41 70 70 6c 65 20 68 61 | 73 20 6c 6f 6e 67 20 63 |Apple ha|s long c|
|000040d0| 6f 6e 73 69 64 65 72 65 | 64 20 72 65 6c 69 61 6e |onsidere|d relian|
|000040e0| 63 65 20 6f 6e 20 4c 61 | 73 65 72 50 72 65 70 20 |ce on La|serPrep |
|000040f0| 70 72 6f 63 65 64 75 72 | 65 73 20 74 6f 20 62 65 |procedur|es to be|
|00004100| 20 61 20 d4 70 72 69 6e | 74 20 63 72 69 6d 65 d5 | a .prin|t crime.|
|00004110| 2e 20 49 6e 20 6f 72 64 | 65 72 20 74 6f 20 6d 61 |. In ord|er to ma|
|00004120| 69 6e 74 61 69 6e 20 63 | 6f 6d 70 61 74 69 62 69 |intain c|ompatibi|
|00004130| 6c 69 74 79 20 77 69 74 | 68 20 50 53 57 72 69 74 |lity wit|h PSWrit|
|00004140| 65 72 2c 20 61 70 70 6c | 69 63 61 74 69 6f 6e 73 |er, appl|ications|
|00004150| 20 73 68 6f 75 6c 64 20 | 6e 6f 74 20 65 6d 69 74 | should |not emit|
|00004160| 20 63 6f 64 65 20 77 68 | 69 63 68 20 75 73 65 73 | code wh|ich uses|
|00004170| 20 4c 61 73 65 72 50 72 | 65 70 20 64 65 66 69 6e | LaserPr|ep defin|
|00004180| 65 64 20 70 72 6f 63 65 | 64 75 72 65 73 2e 20 53 |ed proce|dures. S|
|00004190| 75 63 68 20 63 6f 64 65 | 20 77 69 6c 6c 20 67 65 |uch code| will ge|
|000041a0| 6e 65 72 61 6c 6c 79 20 | 72 65 73 75 6c 74 20 69 |nerally |result i|
|000041b0| 6e 20 61 20 50 6f 73 74 | 53 63 72 69 70 74 20 75 |n a Post|Script u|
|000041c0| 6e 64 65 66 69 6e 65 64 | 20 65 72 72 6f 72 20 61 |ndefined| error a|
|000041d0| 6e 64 20 74 68 65 20 6a | 6f 62 20 77 69 6c 6c 20 |nd the j|ob will |
|000041e0| 6e 6f 74 20 70 72 69 6e | 74 20 70 72 6f 70 65 72 |not prin|t proper|
|000041f0| 6c 79 2e 20 49 6e 20 6f | 72 64 65 72 20 74 6f 20 |ly. In o|rder to |
|00004200| 65 6c 69 6d 69 6e 61 74 | 65 20 73 75 63 68 20 70 |eliminat|e such p|
|00004210| 72 6f 62 6c 65 6d 73 2c | 20 61 6e 20 61 70 70 6c |roblems,| an appl|
|00004220| 69 63 61 74 69 6f 6e 20 | 6d 75 73 74 20 64 65 66 |ication |must def|
|00004230| 69 6e 65 20 74 68 65 20 | 70 72 6f 63 65 64 75 72 |ine the |procedur|
|00004240| 65 73 20 69 74 20 72 65 | 71 75 69 72 65 73 20 69 |es it re|quires i|
|00004250| 6e 73 74 65 61 64 20 6f | 66 20 61 73 73 75 6d 69 |nstead o|f assumi|
|00004260| 6e 67 20 74 68 65 79 20 | 61 72 65 20 61 76 61 69 |ng they |are avai|
|00004270| 6c 61 62 6c 65 20 66 72 | 6f 6d 20 74 68 65 20 65 |lable fr|om the e|
|00004280| 78 69 73 74 69 6e 67 20 | 70 72 69 6e 74 65 72 20 |xisting |printer |
|00004290| 64 72 69 76 65 72 2e 20 | 4e 6f 74 65 20 74 68 61 |driver. |Note tha|
|000042a0| 74 20 69 74 20 69 73 20 | 61 6e 20 65 71 75 61 6c |t it is |an equal|
|000042b0| 6c 79 20 73 65 72 69 6f | 75 73 20 70 72 69 6e 74 |ly serio|us print|
|000042c0| 20 63 72 69 6d 65 20 74 | 6f 20 61 73 73 75 6d 65 | crime t|o assume|
|000042d0| 20 74 68 65 20 65 78 69 | 73 74 65 6e 63 65 20 6f | the exi|stence o|
|000042e0| 66 20 61 6e 79 20 6e 65 | 77 20 70 72 6f 63 65 64 |f any ne|w proced|
|000042f0| 75 72 65 20 64 65 66 69 | 6e 65 64 20 62 79 20 50 |ure defi|ned by P|
|00004300| 53 57 72 69 74 65 72 2e | 20 54 68 65 73 65 20 70 |SWriter.| These p|
|00004310| 72 6f 63 65 64 75 72 65 | 73 20 61 72 65 20 70 72 |rocedure|s are pr|
|00004320| 69 76 61 74 65 20 61 6e | 64 20 6d 61 79 20 63 68 |ivate an|d may ch|
|00004330| 61 6e 67 65 20 77 69 74 | 68 6f 75 74 20 6e 6f 74 |ange wit|hout not|
|00004340| 69 63 65 2e 20 52 65 6c | 69 61 6e 63 65 20 6f 6e |ice. Rel|iance on|
|00004350| 20 73 75 63 68 20 70 72 | 6f 63 65 64 75 72 65 73 | such pr|ocedures|
|00004360| 20 73 65 76 65 72 65 6c | 79 20 6c 69 6d 69 74 73 | severel|y limits|
|00004370| 20 74 68 65 20 61 62 69 | 6c 69 74 79 20 74 6f 20 | the abi|lity to |
|00004380| 72 65 76 69 73 65 20 74 | 68 65 20 64 72 69 76 65 |revise t|he drive|
|00004390| 72 73 20 74 6f 20 61 6c | 6c 6f 77 20 69 6d 70 72 |rs to al|low impr|
|000043a0| 6f 76 65 64 20 70 65 72 | 66 6f 72 6d 61 6e 63 65 |oved per|formance|
|000043b0| 20 61 6e 64 20 6e 65 77 | 20 66 65 61 74 75 72 65 | and new| feature|
|000043c0| 73 2e 20 0d 53 6f 6d 65 | 20 61 70 70 6c 69 63 61 |s. .Some| applica|
|000043d0| 74 69 6f 6e 73 20 64 65 | 66 69 6e 65 20 6e 61 6d |tions de|fine nam|
|000043e0| 65 73 20 77 68 69 63 68 | 20 74 68 65 79 20 65 78 |es which| they ex|
|000043f0| 70 65 63 74 20 77 69 6c | 6c 20 62 65 20 75 73 65 |pect wil|l be use|
|00004400| 64 20 62 79 20 74 68 65 | 20 64 72 69 76 65 72 20 |d by the| driver |
|00004410| 64 75 72 69 6e 67 20 69 | 74 73 20 65 78 65 63 75 |during i|ts execu|
|00004420| 74 69 6f 6e 2e 20 54 79 | 70 69 63 61 6c 6c 79 20 |tion. Ty|pically |
|00004430| 74 68 65 73 65 20 6e 61 | 6d 65 73 20 61 72 65 20 |these na|mes are |
|00004440| 72 65 2d 64 65 66 69 6e | 69 74 69 6f 6e 73 20 6f |re-defin|itions o|
|00004450| 66 20 70 72 6f 63 65 64 | 75 72 65 73 20 77 68 69 |f proced|ures whi|
|00004460| 63 68 20 61 72 65 20 75 | 73 65 64 20 62 79 20 74 |ch are u|sed by t|
|00004470| 68 65 20 6f 6c 64 20 4c | 61 73 65 72 57 72 69 74 |he old L|aserWrit|
|00004480| 65 72 20 64 72 69 76 65 | 72 2e 20 50 53 57 72 69 |er drive|r. PSWri|
|00004490| 74 65 72 20 64 6f 65 73 | 20 6e 6f 74 20 75 73 65 |ter does| not use|
|000044a0| 20 74 68 65 20 73 61 6d | 65 20 70 72 6f 63 65 64 | the sam|e proced|
|000044b0| 75 72 65 73 20 61 6e 64 | 20 6e 61 6d 65 73 20 61 |ures and| names a|
|000044c0| 73 20 74 68 65 20 6f 6c | 64 20 4c 61 73 65 72 57 |s the ol|d LaserW|
|000044d0| 72 69 74 65 72 20 64 72 | 69 76 65 72 20 73 6f 20 |riter dr|iver so |
|000044e0| 73 75 63 68 20 72 65 2d | 64 65 66 69 6e 69 74 69 |such re-|definiti|
|000044f0| 6f 6e 73 20 77 69 6c 6c | 20 6e 6f 74 20 63 61 75 |ons will| not cau|
|00004500| 73 65 20 61 6e 79 20 65 | 78 65 63 75 74 69 6f 6e |se any e|xecution|
|00004510| 20 6f 66 20 74 68 65 20 | 61 70 70 6c 69 63 61 74 | of the |applicat|
|00004520| 69 6f 6e 20 64 65 66 69 | 6e 65 64 20 75 6e 64 65 |ion defi|ned unde|
|00004530| 72 6c 79 69 6e 67 20 63 | 6f 64 65 2e 20 47 65 6e |rlying c|ode. Gen|
|00004540| 65 72 61 6c 6c 79 20 73 | 70 65 61 6b 69 6e 67 20 |erally s|peaking |
|00004550| 74 68 69 73 20 77 69 6c | 6c 20 6e 6f 74 20 72 65 |this wil|l not re|
|00004560| 73 75 6c 74 20 69 6e 20 | 50 6f 73 74 53 63 72 69 |sult in |PostScri|
|00004570| 70 74 20 6c 61 6e 67 75 | 61 67 65 20 65 72 72 6f |pt langu|age erro|
|00004580| 72 73 20 62 75 74 20 77 | 69 6c 6c 20 73 74 69 6c |rs but w|ill stil|
|00004590| 6c 20 72 65 73 75 6c 74 | 20 69 6e 20 69 6e 63 6f |l result| in inco|
|000045a0| 72 72 65 63 74 20 6f 75 | 74 70 75 74 2e 0d 50 53 |rrect ou|tput..PS|
|000045b0| 57 72 69 74 65 72 20 64 | 6f 65 73 20 6e 61 6d 65 |Writer d|oes name|
|000045c0| 20 69 74 73 20 70 72 69 | 76 61 74 65 20 64 69 63 | its pri|vate dic|
|000045d0| 74 69 6f 6e 61 72 79 20 | d4 6d 64 d5 20 69 6e 20 |tionary |.md. in |
|000045e0| 6f 72 64 65 72 20 74 6f | 20 69 6d 70 72 6f 76 65 |order to| improve|
|000045f0| 20 63 6f 6d 70 61 74 69 | 62 69 6c 69 74 79 20 77 | compati|bility w|
|00004600| 69 74 68 20 65 78 69 73 | 74 69 6e 67 20 61 70 70 |ith exis|ting app|
|00004610| 6c 69 63 61 74 69 6f 6e | 73 20 77 68 69 63 68 20 |lication|s which |
|00004620| 61 73 73 75 6d 65 20 69 | 74 73 20 65 78 69 73 74 |assume i|ts exist|
|00004630| 65 6e 63 65 2e 20 49 74 | 20 69 73 20 73 74 69 6c |ence. It| is stil|
|00004640| 6c 20 69 6d 70 6f 72 74 | 61 6e 74 20 74 6f 20 6e |l import|ant to n|
|00004650| 6f 74 20 72 65 6c 79 20 | 6f 6e 20 74 68 65 20 63 |ot rely |on the c|
|00004660| 6f 6e 74 65 6e 74 73 20 | 6f 66 20 74 68 65 20 d4 |ontents |of the .|
|00004670| 6d 64 d5 20 64 69 63 74 | 69 6f 6e 61 72 79 2e 0d |md. dict|ionary..|
|00004680| 34 2e 33 09 66 6c 75 73 | 68 69 6e 67 20 74 68 65 |4.3.flus|hing the|
|00004690| 20 71 75 69 63 6b 64 72 | 61 77 20 67 72 61 70 68 | quickdr|aw graph|
|000046a0| 69 63 73 20 73 74 61 74 | 65 20 69 6e 74 6f 20 61 |ics stat|e into a|
|000046b0| 20 71 75 69 63 6b 64 72 | 61 77 20 70 69 63 74 75 | quickdr|aw pictu|
|000046c0| 72 65 0d 4f 6e 65 20 66 | 65 61 74 75 72 65 20 6f |re.One f|eature o|
|000046d0| 66 20 51 75 69 63 6b 44 | 72 61 77 20 77 68 69 63 |f QuickD|raw whic|
|000046e0| 68 20 73 75 72 70 72 69 | 73 65 73 20 6d 61 6e 79 |h surpri|ses many|
|000046f0| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 20 77 72 69 | applica|tion wri|
|00004700| 74 65 72 73 20 69 73 20 | 68 6f 77 20 69 74 20 63 |ters is |how it c|
|00004710| 72 65 61 74 65 73 20 51 | 75 69 63 6b 44 72 61 77 |reates Q|uickDraw|
|00004720| 20 70 69 63 74 75 72 65 | 73 2e 20 49 6e 73 74 65 | picture|s. Inste|
|00004730| 61 64 20 6f 66 20 72 65 | 63 6f 72 64 69 6e 67 20 |ad of re|cording |
|00004740| 61 6c 6c 20 63 61 6c 6c | 73 20 74 6f 20 63 68 61 |all call|s to cha|
|00004750| 6e 67 65 20 74 68 65 20 | 51 75 69 63 6b 44 72 61 |nge the |QuickDra|
|00004760| 77 20 67 72 61 66 70 6f | 72 74 20 73 74 61 74 65 |w grafpo|rt state|
|00004770| 2c 20 51 75 69 63 6b 44 | 72 61 77 20 69 6e 73 74 |, QuickD|raw inst|
|00004780| 65 61 64 20 72 65 63 6f | 72 64 73 20 63 68 61 6e |ead reco|rds chan|
|00004790| 67 65 73 20 66 72 6f 6d | 20 74 68 65 20 70 72 65 |ges from| the pre|
|000047a0| 76 69 6f 75 73 20 73 74 | 61 74 65 20 77 68 65 6e |vious st|ate when|
|000047b0| 20 69 74 20 61 63 74 75 | 61 6c 6c 79 20 64 72 61 | it actu|ally dra|
|000047c0| 77 73 20 61 20 6e 65 77 | 20 67 72 61 70 68 69 63 |ws a new| graphic|
|000047d0| 20 65 6c 65 6d 65 6e 74 | 2e 20 42 79 20 64 6f 69 | element|. By doi|
|000047e0| 6e 67 20 74 68 69 73 2c | 20 61 6e 79 20 65 78 74 |ng this,| any ext|
|000047f0| 72 61 6e 65 6f 75 73 20 | 63 61 6c 6c 73 20 74 6f |raneous |calls to|
|00004800| 20 63 68 61 6e 67 65 20 | 74 68 65 20 73 74 61 74 | change |the stat|
|00004810| 65 20 6f 66 20 74 68 65 | 20 67 72 61 66 70 6f 72 |e of the| grafpor|
|00004820| 74 20 61 72 65 20 69 67 | 6e 6f 72 65 64 2c 20 6f |t are ig|nored, o|
|00004830| 6e 6c 79 20 74 68 6f 73 | 65 20 63 68 61 6e 67 65 |nly thos|e change|
|00004840| 73 20 6e 65 63 65 73 73 | 61 72 79 20 74 6f 20 64 |s necess|ary to d|
|00004850| 72 61 77 20 74 68 65 20 | 6e 65 78 74 20 67 72 61 |raw the |next gra|
|00004860| 70 68 69 63 20 61 72 65 | 20 72 65 63 6f 72 64 65 |phic are| recorde|
|00004870| 64 20 69 6e 74 6f 20 74 | 68 65 20 51 75 69 63 6b |d into t|he Quick|
|00004880| 44 72 61 77 20 70 69 63 | 74 75 72 65 2e 20 46 6f |Draw pic|ture. Fo|
|00004890| 72 20 65 78 61 6d 70 6c | 65 2c 20 69 66 20 74 68 |r exampl|e, if th|
|000048a0| 65 20 70 72 65 76 69 6f | 75 73 20 6f 62 6a 65 63 |e previo|us objec|
|000048b0| 74 20 77 65 72 65 20 66 | 72 61 6d 65 64 20 77 69 |t were f|ramed wi|
|000048c0| 74 68 20 61 20 70 65 6e | 20 73 69 7a 65 20 6f 66 |th a pen| size of|
|000048d0| 20 32 2c 32 20 61 6e 64 | 20 74 68 65 20 70 65 6e | 2,2 and| the pen|
|000048e0| 20 77 65 72 65 20 63 68 | 61 6e 67 65 64 20 66 69 | were ch|anged fi|
|000048f0| 72 73 74 20 74 6f 20 33 | 2c 33 20 61 6e 64 20 61 |rst to 3|,3 and a|
|00004900| 20 74 65 78 74 20 77 61 | 73 20 64 72 61 77 6e 20 | text wa|s drawn |
|00004910| 75 73 69 6e 67 20 44 72 | 61 77 54 65 78 74 2c 20 |using Dr|awText, |
|00004920| 74 68 65 6e 20 74 68 65 | 20 70 65 6e 20 77 61 73 |then the| pen was|
|00004930| 20 73 65 74 20 62 61 63 | 6b 20 74 6f 20 32 2c 32 | set bac|k to 2,2|
|00004940| 20 62 65 66 6f 72 65 20 | 61 20 6e 65 77 20 51 75 | before |a new Qu|
|00004950| 69 63 6b 44 72 61 77 20 | 72 65 63 74 61 6e 67 6c |ickDraw |rectangl|
|00004960| 65 20 77 61 73 20 66 72 | 61 6d 65 64 2c 20 74 68 |e was fr|amed, th|
|00004970| 65 20 70 69 63 74 75 72 | 65 20 77 6f 75 6c 64 20 |e pictur|e would |
|00004980| 63 6f 6e 74 61 69 6e 20 | 6e 6f 20 72 65 63 6f 72 |contain |no recor|
|00004990| 64 69 6e 67 20 6f 66 20 | 74 68 65 20 70 65 6e 20 |ding of |the pen |
|000049a0| 77 69 64 74 68 20 63 68 | 61 6e 67 65 73 20 73 69 |width ch|anges si|
|000049b0| 6e 63 65 20 74 68 65 79 | 20 64 69 64 20 6e 6f 74 |nce they| did not|
|000049c0| 20 61 66 66 65 63 74 20 | 61 6e 79 20 64 72 61 77 | affect |any draw|
|000049d0| 6e 20 67 72 61 70 68 69 | 63 73 2e 0d 54 68 69 73 |n graphi|cs..This|
|000049e0| 20 6d 65 63 68 61 6e 69 | 73 6d 20 77 6f 72 6b 73 | mechani|sm works|
|000049f0| 20 76 65 72 79 20 77 65 | 6c 6c 20 65 78 63 65 70 | very we|ll excep|
|00004a00| 74 20 74 68 61 74 20 74 | 68 65 20 51 75 69 63 6b |t that t|he Quick|
|00004a10| 44 72 61 77 20 70 69 63 | 74 75 72 65 20 63 72 65 |Draw pic|ture cre|
|00004a20| 61 74 69 6f 6e 20 6d 65 | 63 68 61 6e 69 73 6d 20 |ation me|chanism |
|00004a30| 64 6f 65 73 20 6e 6f 74 | 20 63 6f 6e 73 69 64 65 |does not| conside|
|00004a40| 72 20 63 61 6c 6c 73 20 | 74 6f 20 53 74 64 43 6f |r calls |to StdCo|
|00004a50| 6d 6d 65 6e 74 20 74 6f | 20 62 65 20 51 75 69 63 |mment to| be Quic|
|00004a60| 6b 44 72 61 77 20 64 72 | 61 77 69 6e 67 20 6f 70 |kDraw dr|awing op|
|00004a70| 65 72 61 74 69 6f 6e 73 | 2e 20 42 65 63 61 75 73 |erations|. Becaus|
|00004a80| 65 20 6f 66 20 74 68 69 | 73 2c 20 63 68 61 6e 67 |e of thi|s, chang|
|00004a90| 65 73 20 74 6f 20 74 68 | 65 20 67 72 61 66 70 6f |es to th|e grafpo|
|00004aa0| 72 74 20 6d 61 64 65 20 | 61 66 74 65 72 20 64 72 |rt made |after dr|
|00004ab0| 61 77 69 6e 67 20 74 68 | 65 20 6c 61 73 74 20 51 |awing th|e last Q|
|00004ac0| 75 69 63 6b 44 72 61 77 | 20 67 72 61 70 68 69 63 |uickDraw| graphic|
|00004ad0| 20 62 75 74 20 62 65 66 | 6f 72 65 20 75 73 65 20 | but bef|ore use |
|00004ae0| 6f 66 20 61 20 70 69 63 | 74 75 72 65 20 63 6f 6d |of a pic|ture com|
|00004af0| 6d 65 6e 74 20 61 72 65 | 20 6e 6f 74 20 72 65 63 |ment are| not rec|
|00004b00| 6f 72 64 65 64 20 69 6e | 74 6f 20 74 68 65 20 51 |orded in|to the Q|
|00004b10| 75 69 63 6b 44 72 61 77 | 20 70 69 63 74 75 72 65 |uickDraw| picture|
|00004b20| 2e 20 54 68 69 73 20 61 | 66 66 65 63 74 73 20 67 |. This a|ffects g|
|00004b30| 65 6e 65 72 61 74 6f 72 | 73 20 6f 66 20 63 75 73 |enerator|s of cus|
|00004b40| 74 6f 6d 20 50 6f 73 74 | 53 63 72 69 70 74 20 63 |tom Post|Script c|
|00004b50| 6f 64 65 20 74 68 72 6f | 75 67 68 20 74 68 65 20 |ode thro|ugh the |
|00004b60| 75 73 65 20 6f 66 20 74 | 68 65 20 50 6f 73 74 53 |use of t|he PostS|
|00004b70| 63 72 69 70 74 42 65 67 | 69 6e 20 70 69 63 74 75 |criptBeg|in pictu|
|00004b80| 72 65 20 63 6f 6d 6d 65 | 6e 74 20 28 73 65 65 20 |re comme|nt (see |
|00004b90| 73 65 63 74 69 6f 6e 20 | 34 2e 34 20 66 6f 72 20 |section |4.4 for |
|00004ba0| 6d 6f 72 65 20 69 6e 66 | 6f 72 6d 61 74 69 6f 6e |more inf|ormation|
|00004bb0| 20 6f 6e 20 50 6f 73 74 | 53 63 72 69 70 74 42 65 | on Post|ScriptBe|
|00004bc0| 67 69 6e 29 2e 20 0d 77 | 68 79 20 74 68 65 20 69 |gin). .w|hy the i|
|00004bd0| 6e 69 74 69 61 6c 20 63 | 6c 69 70 20 66 6f 72 20 |nitial c|lip for |
|00004be0| 79 6f 75 72 20 70 6f 73 | 74 73 63 72 69 70 74 20 |your pos|tscript |
|00004bf0| 63 6f 64 65 20 6d 61 79 | 20 62 65 20 7a 65 72 6f |code may| be zero|
|00004c00| 20 0d 4f 6e 65 20 65 78 | 61 6d 70 6c 65 20 6f 66 | .One ex|ample of|
|00004c10| 20 68 6f 77 20 74 68 69 | 73 20 70 72 6f 62 6c 65 | how thi|s proble|
|00004c20| 6d 20 6d 61 79 20 73 75 | 72 70 72 69 73 65 20 64 |m may su|rprise d|
|00004c30| 65 76 65 6c 6f 70 65 72 | 73 20 28 61 6e 64 20 50 |eveloper|s (and P|
|00004c40| 6f 73 74 53 63 72 69 70 | 74 20 64 72 69 76 65 72 |ostScrip|t driver|
|00004c50| 20 77 72 69 74 65 72 73 | 21 29 20 69 73 20 74 68 | writers|!) is th|
|00004c60| 61 74 20 74 68 65 20 69 | 6e 69 74 69 61 6c 20 63 |at the i|nitial c|
|00004c70| 6c 69 70 20 69 6e 20 61 | 20 51 75 69 63 6b 44 72 |lip in a| QuickDr|
|00004c80| 61 77 20 70 69 63 74 75 | 72 65 20 62 65 66 6f 72 |aw pictu|re befor|
|00004c90| 65 20 61 6e 79 20 51 75 | 69 63 6b 44 72 61 77 20 |e any Qu|ickDraw |
|00004ca0| 64 72 61 77 69 6e 67 20 | 69 73 20 70 65 72 66 6f |drawing |is perfo|
|00004cb0| 72 6d 65 64 20 69 73 20 | 61 20 72 65 63 74 61 6e |rmed is |a rectan|
|00004cc0| 67 6c 65 20 6f 66 20 7a | 65 72 6f 20 77 69 64 74 |gle of z|ero widt|
|00004cd0| 68 20 61 6e 64 20 68 65 | 69 67 68 74 2e 20 49 66 |h and he|ight. If|
|00004ce0| 20 74 68 65 20 66 69 72 | 73 74 20 d2 64 72 61 77 | the fir|st .draw|
|00004cf0| 69 6e 67 d3 20 64 6f 6e | 65 20 62 79 20 74 68 65 |ing. don|e by the|
|00004d00| 20 63 72 65 61 74 6f 72 | 20 6f 66 20 74 68 65 20 | creator| of the |
|00004d10| 70 69 63 74 75 72 65 20 | 69 73 20 64 6f 6e 65 20 |picture |is done |
|00004d20| 62 79 20 63 75 73 74 6f | 6d 20 50 6f 73 74 53 63 |by custo|m PostSc|
|00004d30| 72 69 70 74 20 63 6f 64 | 65 20 65 6d 69 74 74 65 |ript cod|e emitte|
|00004d40| 64 20 62 79 20 70 69 63 | 74 75 72 65 20 63 6f 6d |d by pic|ture com|
|00004d50| 6d 65 6e 74 73 20 74 68 | 65 6e 20 74 68 65 20 63 |ments th|en the c|
|00004d60| 6c 69 70 20 69 6e 20 65 | 66 66 65 63 74 20 61 74 |lip in e|ffect at|
|00004d70| 20 74 68 61 74 20 74 69 | 6d 65 20 69 73 20 74 68 | that ti|me is th|
|00004d80| 65 20 7a 65 72 6f 20 63 | 6c 69 70 2e 20 54 68 65 |e zero c|lip. The|
|00004d90| 20 72 65 73 75 6c 74 20 | 69 73 20 74 68 61 74 20 | result |is that |
|00004da0| 61 6e 79 20 64 72 61 77 | 69 6e 67 20 64 6f 6e 65 |any draw|ing done|
|00004db0| 20 62 79 20 74 68 65 20 | 63 75 73 74 6f 6d 20 50 | by the |custom P|
|00004dc0| 6f 73 74 53 63 72 69 70 | 74 20 63 6f 64 65 20 65 |ostScrip|t code e|
|00004dd0| 6d 69 74 74 65 64 20 62 | 65 66 6f 72 65 20 61 6e |mitted b|efore an|
|00004de0| 79 20 51 75 69 63 6b 44 | 72 61 77 20 64 72 61 77 |y QuickD|raw draw|
|00004df0| 69 6e 67 20 77 69 6c 6c | 20 62 65 20 63 6c 69 70 |ing will| be clip|
|00004e00| 70 65 64 20 6f 75 74 2e | 20 4f 6e 63 65 20 61 6e |ped out.| Once an|
|00004e10| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 20 61 63 74 | applica|tion act|
|00004e20| 75 61 6c 6c 79 20 64 72 | 61 77 73 20 61 20 6c 69 |ually dr|aws a li|
|00004e30| 6e 65 2c 20 72 65 63 74 | 61 6e 67 6c 65 2c 20 74 |ne, rect|angle, t|
|00004e40| 65 78 74 2c 20 63 6f 70 | 79 62 69 74 73 2c 20 65 |ext, cop|ybits, e|
|00004e50| 74 63 2e 20 74 68 65 6e | 20 74 68 65 20 63 6c 69 |tc. then| the cli|
|00004e60| 70 20 69 6e 20 74 68 65 | 20 67 72 61 66 70 6f 72 |p in the| grafpor|
|00004e70| 74 20 69 73 20 73 65 74 | 20 63 6f 72 72 65 63 74 |t is set| correct|
|00004e80| 6c 79 20 62 79 20 74 68 | 65 20 70 69 63 74 75 72 |ly by th|e pictur|
|00004e90| 65 20 64 72 61 77 69 6e | 67 20 6d 65 63 68 61 6e |e drawin|g mechan|
|00004ea0| 69 73 6d 2e 20 54 68 65 | 20 73 69 6d 70 6c 65 20 |ism. The| simple |
|00004eb0| 77 6f 72 6b 20 61 72 6f | 75 6e 64 20 66 6f 72 20 |work aro|und for |
|00004ec0| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 77 72 69 74 |applicat|ion writ|
|00004ed0| 65 72 73 20 77 68 69 63 | 68 20 67 65 6e 65 72 61 |ers whic|h genera|
|00004ee0| 74 65 20 50 6f 73 74 53 | 63 72 69 70 74 20 6c 61 |te PostS|cript la|
|00004ef0| 6e 67 75 61 67 65 20 63 | 6f 64 65 20 62 65 66 6f |nguage c|ode befo|
|00004f00| 72 65 20 61 6e 79 20 51 | 75 69 63 6b 44 72 61 77 |re any Q|uickDraw|
|00004f10| 20 63 6f 64 65 20 69 73 | 20 74 6f 20 66 69 72 73 | code is| to firs|
|00004f20| 74 20 64 72 61 77 20 65 | 69 74 68 65 72 20 61 20 |t draw e|ither a |
|00004f30| 7a 65 72 6f 20 77 69 64 | 74 68 20 6c 69 6e 65 20 |zero wid|th line |
|00004f40| 6f 72 20 61 20 73 70 61 | 63 65 20 63 68 61 72 61 |or a spa|ce chara|
|00004f50| 63 74 65 72 20 69 6e 20 | 61 20 66 6f 6e 74 20 79 |cter in |a font y|
|00004f60| 6f 75 20 72 65 71 75 69 | 72 65 20 66 6f 72 20 79 |ou requi|re for y|
|00004f70| 6f 75 72 20 50 6f 73 74 | 53 63 72 69 70 74 20 6c |our Post|Script l|
|00004f80| 61 6e 67 75 61 67 65 20 | 63 6f 64 65 2e 20 54 68 |anguage |code. Th|
|00004f90| 69 73 20 77 69 6c 6c 20 | 63 61 75 73 65 20 51 75 |is will |cause Qu|
|00004fa0| 69 63 6b 44 72 61 77 20 | 74 6f 20 70 72 6f 70 65 |ickDraw |to prope|
|00004fb0| 72 6c 79 20 73 65 74 20 | 74 68 65 20 63 6c 69 70 |rly set |the clip|
|00004fc0| 20 69 6e 20 74 68 65 20 | 51 75 69 63 6b 44 72 61 | in the |QuickDra|
|00004fd0| 77 20 70 69 63 74 75 72 | 65 20 62 65 66 6f 72 65 |w pictur|e before|
|00004fe0| 20 79 6f 75 72 20 63 75 | 73 74 6f 6d 20 50 6f 73 | your cu|stom Pos|
|00004ff0| 74 53 63 72 69 70 74 20 | 63 6f 64 65 20 69 73 20 |tScript |code is |
|00005000| 65 78 65 63 75 74 65 64 | 2e 0d 41 73 20 64 65 73 |executed|..As des|
|00005010| 63 72 69 62 65 64 20 61 | 62 6f 76 65 2c 20 61 6e |cribed a|bove, an|
|00005020| 6f 74 68 65 72 20 70 72 | 6f 62 6c 65 6d 20 66 72 |other pr|oblem fr|
|00005030| 65 71 75 65 6e 74 6c 79 | 20 61 70 70 65 61 72 69 |equently| appeari|
|00005040| 6e 67 20 69 73 20 74 68 | 61 74 20 61 20 63 68 61 |ng is th|at a cha|
|00005050| 6e 67 65 20 79 6f 75 72 | 20 61 70 70 6c 69 63 61 |nge your| applica|
|00005060| 74 69 6f 6e 20 6d 61 64 | 65 20 74 6f 20 74 68 65 |tion mad|e to the|
|00005070| 20 67 72 61 66 70 6f 72 | 74 20 64 6f 65 73 20 6e | grafpor|t does n|
|00005080| 6f 74 20 61 70 70 65 61 | 72 20 62 65 66 6f 72 65 |ot appea|r before|
|00005090| 20 79 6f 75 72 20 50 6f | 73 74 53 63 72 69 70 74 | your Po|stScript|
|000050a0| 20 63 6f 64 65 20 69 73 | 20 65 78 65 63 75 74 65 | code is| execute|
|000050b0| 64 2e 20 54 68 65 20 73 | 6f 6c 75 74 69 6f 6e 20 |d. The s|olution |
|000050c0| 69 73 20 74 6f 20 65 6e | 73 75 72 65 20 74 68 61 |is to en|sure tha|
|000050d0| 74 20 74 68 65 20 70 72 | 6f 70 65 72 20 51 75 69 |t the pr|oper Qui|
|000050e0| 63 6b 44 72 61 77 20 73 | 74 61 74 65 20 69 73 20 |ckDraw s|tate is |
|000050f0| 66 6c 75 73 68 65 64 20 | 69 6e 74 6f 20 74 68 65 |flushed |into the|
|00005100| 20 51 75 69 63 6b 44 72 | 61 77 20 70 69 63 74 75 | QuickDr|aw pictu|
|00005110| 72 65 20 62 79 20 66 69 | 72 73 74 20 64 72 61 77 |re by fi|rst draw|
|00005120| 69 6e 67 20 61 6e 20 61 | 70 70 72 6f 70 72 69 61 |ing an a|ppropria|
|00005130| 74 65 20 6f 62 6a 65 63 | 74 20 62 65 66 6f 72 65 |te objec|t before|
|00005140| 20 63 61 6c 6c 69 6e 67 | 20 50 6f 73 74 53 63 72 | calling| PostScr|
|00005150| 69 70 74 42 65 67 69 6e | 2e 20 46 6f 72 20 65 6e |iptBegin|. For en|
|00005160| 73 75 72 69 6e 67 20 74 | 68 65 20 70 65 6e 20 63 |suring t|he pen c|
|00005170| 6f 6c 6f 72 20 61 6e 64 | 20 69 6e 69 74 69 61 6c |olor and| initial|
|00005180| 20 63 6c 69 70 20 74 6f | 20 74 68 65 20 70 69 63 | clip to| the pic|
|00005190| 74 75 72 65 2c 20 73 65 | 74 20 74 68 65 20 61 70 |ture, se|t the ap|
|000051a0| 70 72 6f 70 72 69 61 74 | 65 20 67 72 61 66 70 6f |propriat|e grafpo|
|000051b0| 72 74 20 65 6e 74 72 69 | 65 73 2c 20 74 68 65 6e |rt entri|es, then|
|000051c0| 20 64 72 61 77 20 61 20 | 7a 65 72 6f 20 77 69 64 | draw a |zero wid|
|000051d0| 74 68 20 6c 69 6e 65 20 | 6f 66 20 7a 65 72 6f 20 |th line |of zero |
|000051e0| 6c 65 6e 67 74 68 2e 20 | 54 68 69 73 20 66 6c 75 |length. |This flu|
|000051f0| 73 68 65 73 20 74 68 65 | 20 63 68 61 6e 67 65 73 |shes the| changes|
|00005200| 20 74 6f 20 74 68 65 20 | 51 75 69 63 6b 44 72 61 | to the |QuickDra|
|00005210| 77 20 73 74 61 74 65 20 | 69 6e 74 6f 20 74 68 65 |w state |into the|
|00005220| 20 67 72 61 66 70 6f 72 | 74 2e 20 49 66 20 61 20 | grafpor|t. If a |
|00005230| 73 70 65 63 69 66 69 63 | 20 66 6f 6e 74 20 69 73 |specific| font is|
|00005240| 20 72 65 71 75 69 72 65 | 64 20 66 6f 72 20 79 6f | require|d for yo|
|00005250| 75 72 20 63 75 73 74 6f | 6d 20 50 6f 73 74 53 63 |ur custo|m PostSc|
|00005260| 72 69 70 74 20 6c 61 6e | 67 75 61 67 65 20 64 72 |ript lan|guage dr|
|00005270| 61 77 69 6e 67 2c 20 66 | 69 72 73 74 20 73 65 74 |awing, f|irst set|
|00005280| 20 74 68 65 20 66 6f 6e | 74 20 69 6e 20 74 68 65 | the fon|t in the|
|00005290| 20 67 72 61 66 70 6f 72 | 74 2c 20 74 68 65 6e 20 | grafpor|t, then |
|000052a0| 64 72 61 77 20 61 20 73 | 70 61 63 65 20 63 68 61 |draw a s|pace cha|
|000052b0| 72 61 63 74 65 72 20 69 | 6e 20 74 68 65 20 64 65 |racter i|n the de|
|000052c0| 73 69 72 65 64 20 6c 6f | 63 61 74 69 6f 6e 2e 20 |sired lo|cation. |
|000052d0| 49 66 20 74 68 65 20 70 | 72 65 76 69 6f 75 73 20 |If the p|revious |
|000052e0| 70 65 6e 20 70 6f 73 69 | 74 69 6f 6e 20 69 73 20 |pen posi|tion is |
|000052f0| 61 6c 73 6f 20 69 6d 70 | 6f 72 74 61 6e 74 20 66 |also imp|ortant f|
|00005300| 6f 72 20 79 6f 75 72 20 | 63 75 73 74 6f 6d 20 50 |or your |custom P|
|00005310| 6f 73 74 53 63 72 69 70 | 74 20 6c 61 6e 67 75 61 |ostScrip|t langua|
|00005320| 67 65 20 63 6f 64 65 2c | 20 74 68 65 6e 20 64 72 |ge code,| then dr|
|00005330| 61 77 20 61 20 7a 65 72 | 6f 20 77 69 64 74 68 20 |aw a zer|o width |
|00005340| 6c 69 6e 65 20 6f 66 20 | 7a 65 72 6f 20 6c 65 6e |line of |zero len|
|00005350| 67 74 68 20 61 74 20 74 | 68 65 20 70 65 6e 20 6c |gth at t|he pen l|
|00005360| 6f 63 61 74 69 6f 6e 20 | 72 65 71 75 69 72 65 64 |ocation |required|
|00005370| 2e 20 53 65 65 20 6c 69 | 73 74 69 6e 67 20 31 20 |. See li|sting 1 |
|00005380| 66 6f 72 20 61 6e 20 65 | 78 61 6d 70 6c 65 20 6f |for an e|xample o|
|00005390| 66 20 74 68 69 73 20 63 | 6f 64 65 2e 20 4d 61 63 |f this c|ode. Mac|
|000053a0| 69 6e 74 6f 73 68 20 54 | 65 63 68 6e 69 63 61 6c |intosh T|echnical|
|000053b0| 20 4e 6f 74 65 20 50 69 | 63 74 75 72 65 20 43 6f | Note Pi|cture Co|
|000053c0| 6d 6d 65 6e 74 73 d0 54 | 68 65 20 52 65 61 6c 20 |mments.T|he Real |
|000053d0| 44 65 61 6c 20 28 6f 6c | 64 20 23 39 31 29 29 20 |Deal (ol|d #91)) |
|000053e0| 63 6f 6e 74 61 69 6e 73 | 20 61 20 70 72 6f 63 65 |contains| a proce|
|000053f0| 64 75 72 65 20 46 6c 75 | 73 68 50 6f 72 74 53 74 |dure Flu|shPortSt|
|00005400| 61 74 65 20 77 68 69 63 | 68 20 70 72 6f 76 69 64 |ate whic|h provid|
|00005410| 65 73 20 73 69 6d 69 6c | 61 72 20 66 75 6e 63 74 |es simil|ar funct|
|00005420| 69 6f 6e 61 6c 69 74 79 | 2e 0d 4c 69 73 74 69 6e |ionality|..Listin|
|00005430| 67 20 31 2e 09 46 6c 75 | 73 68 69 6e 67 20 74 68 |g 1..Flu|shing th|
|00005440| 65 20 51 75 69 63 6b 44 | 72 61 77 20 67 72 61 70 |e QuickD|raw grap|
|00005450| 68 69 63 73 20 73 74 61 | 74 65 20 0d 76 6f 69 64 |hics sta|te .void|
|00005460| 20 46 6c 75 73 68 51 44 | 53 74 61 74 65 28 29 0d | FlushQD|State().|
|00005470| 7b 0d 09 50 65 6e 53 74 | 61 74 65 09 70 65 6e 49 |{..PenSt|ate.penI|
|00005480| 6e 66 6f 3b 0d 09 47 65 | 74 50 65 6e 53 74 61 74 |nfo;..Ge|tPenStat|
|00005490| 65 28 26 70 65 6e 49 6e | 66 6f 29 3b 09 0d 09 50 |e(&penIn|fo);...P|
|000054a0| 65 6e 53 69 7a 65 28 30 | 2c 30 29 3b 0d 09 4c 69 |enSize(0|,0);..Li|
|000054b0| 6e 65 28 30 2c 30 29 3b | 0d 09 53 65 74 50 65 6e |ne(0,0);|..SetPen|
|000054c0| 53 74 61 74 65 28 26 70 | 65 6e 49 6e 66 6f 29 3b |State(&p|enInfo);|
|000054d0| 0d 7d 0d 34 2e 34 09 70 | 6f 73 74 73 63 72 69 70 |.}.4.4.p|ostscrip|
|000054e0| 74 20 70 69 63 63 6f 6d | 6d 65 6e 74 73 0d 41 70 |t piccom|ments.Ap|
|000054f0| 70 6c 69 63 61 74 69 6f | 6e 73 20 69 6e 73 65 72 |plicatio|ns inser|
|00005500| 74 20 50 6f 73 74 53 63 | 72 69 70 74 20 6c 61 6e |t PostSc|ript lan|
|00005510| 67 75 61 67 65 20 63 6f | 64 65 20 69 6e 74 6f 20 |guage co|de into |
|00005520| 74 68 65 20 70 72 69 6e | 74 20 73 74 72 65 61 6d |the prin|t stream|
|00005530| 20 77 69 74 68 20 74 68 | 65 20 75 73 65 20 6f 66 | with th|e use of|
|00005540| 20 74 68 65 20 51 75 69 | 63 6b 44 72 61 77 20 70 | the Qui|ckDraw p|
|00005550| 69 63 74 75 72 65 20 63 | 6f 6d 6d 65 6e 74 73 20 |icture c|omments |
|00005560| 50 6f 73 74 53 63 72 69 | 70 74 42 65 67 69 6e 2c |PostScri|ptBegin,|
|00005570| 20 50 6f 73 74 53 63 72 | 69 70 74 48 61 6e 64 6c | PostScr|iptHandl|
|00005580| 65 2c 20 54 65 78 74 49 | 73 50 6f 73 74 53 63 72 |e, TextI|sPostScr|
|00005590| 69 70 74 2c 20 50 6f 73 | 74 53 63 72 69 70 74 45 |ipt, Pos|tScriptE|
|000055a0| 6e 64 2c 20 61 6e 64 20 | 50 6f 73 74 53 63 72 69 |nd, and |PostScri|
|000055b0| 70 74 42 65 67 69 6e 4e | 6f 53 61 76 65 2e 20 20 |ptBeginN|oSave. |
|000055c0| 54 79 70 69 63 61 6c 6c | 79 20 74 68 65 73 65 20 |Typicall|y these |
|000055d0| 63 6f 6d 6d 65 6e 74 73 | 20 61 72 65 20 75 73 65 |comments| are use|
|000055e0| 64 20 61 73 20 66 6f 6c | 6c 6f 77 73 0d 50 69 63 |d as fol|lows.Pic|
|000055f0| 43 6f 6d 6d 65 6e 74 28 | 50 6f 73 74 53 63 72 69 |Comment(|PostScri|
|00005600| 70 74 42 65 67 69 6e 2c | 30 2c 30 29 3b 0d 50 69 |ptBegin,|0,0);.Pi|
|00005610| 63 43 6f 6d 6d 65 6e 74 | 28 50 6f 73 74 53 63 72 |cComment|(PostScr|
|00005620| 69 70 74 48 61 6e 64 6c | 65 2c 47 65 74 48 61 6e |iptHandl|e,GetHan|
|00005630| 64 6c 65 53 69 7a 65 28 | 68 29 2c 68 29 3b 0d c9 |dleSize(|h),h);..|
|00005640| 6e 75 6d 65 72 6f 75 73 | 20 75 73 65 73 20 6f 66 |numerous| uses of|
|00005650| 20 50 6f 73 74 53 63 72 | 69 70 74 48 61 6e 64 6c | PostScr|iptHandl|
|00005660| 65 c9 0d 50 69 63 43 6f | 6d 6d 65 6e 74 28 50 6f |e..PicCo|mment(Po|
|00005670| 73 74 53 63 72 69 70 74 | 45 6e 64 2c 30 2c 30 29 |stScript|End,0,0)|
|00005680| 3b 0d 54 68 65 20 68 61 | 6e 64 6c 65 20 68 20 63 |;.The ha|ndle h c|
|00005690| 6f 6e 74 61 69 6e 73 20 | 74 68 65 20 50 6f 73 74 |ontains |the Post|
|000056a0| 53 63 72 69 70 74 20 6c | 61 6e 67 75 61 67 65 20 |Script l|anguage |
|000056b0| 63 6f 64 65 20 74 6f 20 | 62 65 20 69 6e 73 65 72 |code to |be inser|
|000056c0| 74 65 64 20 69 6e 74 6f | 20 74 68 65 20 70 72 69 |ted into| the pri|
|000056d0| 6e 74 20 73 74 72 65 61 | 6d 2e 20 54 68 65 20 63 |nt strea|m. The c|
|000056e0| 6f 6f 72 64 69 6e 61 74 | 65 20 73 79 73 74 65 6d |oordinat|e system|
|000056f0| 20 69 6e 20 65 66 66 65 | 63 74 20 61 74 20 74 68 | in effe|ct at th|
|00005700| 65 20 74 69 6d 65 20 6f | 66 20 65 78 65 63 75 74 |e time o|f execut|
|00005710| 69 6f 6e 20 6f 66 20 74 | 68 65 20 50 6f 73 74 53 |ion of t|he PostS|
|00005720| 63 72 69 70 74 20 6c 61 | 6e 67 75 61 67 65 20 63 |cript la|nguage c|
|00005730| 6f 64 65 20 69 6e 20 74 | 68 65 20 68 61 6e 64 6c |ode in t|he handl|
|00005740| 65 20 69 73 20 74 68 65 | 20 73 61 6d 65 20 61 73 |e is the| same as|
|00005750| 20 74 68 65 20 51 75 69 | 63 6b 44 72 61 77 20 63 | the Qui|ckDraw c|
|00005760| 6f 6f 72 64 69 6e 61 74 | 65 20 73 79 73 74 65 6d |oordinat|e system|
|00005770| 3a 20 74 68 65 20 6f 72 | 69 67 69 6e 20 6f 66 20 |: the or|igin of |
|00005780| 63 6f 6f 72 64 69 6e 61 | 74 65 73 20 69 73 20 61 |coordina|tes is a|
|00005790| 74 20 74 68 65 20 74 6f | 70 20 6c 65 66 74 20 63 |t the to|p left c|
|000057a0| 6f 72 6e 65 72 20 6f 66 | 20 74 68 65 20 69 6d 61 |orner of| the ima|
|000057b0| 67 65 61 62 6c 65 20 61 | 72 65 61 20 6f 66 20 74 |geable a|rea of t|
|000057c0| 68 65 20 70 61 67 65 20 | 77 69 74 68 20 74 68 65 |he page |with the|
|000057d0| 20 79 20 63 6f 6f 72 64 | 69 6e 61 74 65 20 69 6e | y coord|inate in|
|000057e0| 63 72 65 61 73 69 6e 67 | 20 64 6f 77 6e 20 74 68 |creasing| down th|
|000057f0| 65 20 70 61 67 65 2e 20 | 0d 4e 6f 72 6d 61 6c 6c |e page. |.Normall|
|00005800| 79 20 50 53 57 72 69 74 | 65 72 20 28 61 6e 64 20 |y PSWrit|er (and |
|00005810| 74 68 65 20 6f 6c 64 20 | 4c 61 73 65 72 57 72 69 |the old |LaserWri|
|00005820| 74 65 72 20 64 72 69 76 | 65 72 29 20 65 6e 63 6c |ter driv|er) encl|
|00005830| 6f 73 65 73 20 74 68 65 | 20 63 6f 64 65 20 65 78 |oses the| code ex|
|00005840| 65 63 75 74 65 64 20 77 | 69 74 68 69 6e 20 61 20 |ecuted w|ithin a |
|00005850| 50 6f 73 74 53 63 72 69 | 70 74 42 65 67 69 6e 2f |PostScri|ptBegin/|
|00005860| 45 6e 64 20 73 65 71 75 | 65 6e 63 65 20 69 6e 20 |End sequ|ence in |
|00005870| 61 20 73 61 76 65 2f 72 | 65 73 74 6f 72 65 20 70 |a save/r|estore p|
|00005880| 61 69 72 2e 20 54 68 69 | 73 20 6c 69 6d 69 74 73 |air. Thi|s limits|
|00005890| 20 74 68 65 20 65 66 66 | 65 63 74 73 20 6f 66 20 | the eff|ects of |
|000058a0| 63 68 61 6e 67 65 73 20 | 74 6f 20 74 68 65 20 50 |changes |to the P|
|000058b0| 6f 73 74 53 63 72 69 70 | 74 20 67 72 61 70 68 69 |ostScrip|t graphi|
|000058c0| 63 73 20 73 74 61 74 65 | 20 61 6e 64 20 56 4d 20 |cs state| and VM |
|000058d0| 74 6f 20 74 68 65 20 65 | 78 65 63 75 74 69 6f 6e |to the e|xecution|
|000058e0| 20 6f 66 20 74 68 65 20 | 63 6f 64 65 20 63 6f 6e | of the |code con|
|000058f0| 74 61 69 6e 65 64 20 77 | 69 74 68 69 6e 20 74 68 |tained w|ithin th|
|00005900| 65 20 50 6f 73 74 53 63 | 72 69 70 74 42 65 67 69 |e PostSc|riptBegi|
|00005910| 6e 2f 45 6e 64 20 73 65 | 71 75 65 6e 63 65 2e 20 |n/End se|quence. |
|00005920| 4f 6e 63 65 20 50 6f 73 | 74 53 63 72 69 70 74 45 |Once Pos|tScriptE|
|00005930| 6e 64 20 69 73 20 65 78 | 65 63 75 74 65 64 2c 20 |nd is ex|ecuted, |
|00005940| 74 68 65 20 67 72 61 70 | 68 69 63 73 20 73 74 61 |the grap|hics sta|
|00005950| 74 65 20 69 73 20 72 65 | 73 74 6f 72 65 64 20 74 |te is re|stored t|
|00005960| 6f 20 74 68 61 74 20 69 | 6e 20 65 66 66 65 63 74 |o that i|n effect|
|00005970| 20 61 74 20 74 68 65 20 | 74 69 6d 65 20 50 6f 73 | at the |time Pos|
|00005980| 74 53 63 72 69 70 74 42 | 65 67 69 6e 20 77 61 73 |tScriptB|egin was|
|00005990| 20 65 78 65 63 75 74 65 | 64 2e 20 54 68 69 73 20 | execute|d. This |
|000059a0| 70 72 65 76 65 6e 74 73 | 20 74 68 65 20 50 6f 73 |prevents| the Pos|
|000059b0| 74 53 63 72 69 70 74 20 | 63 6f 64 65 20 65 78 65 |tScript |code exe|
|000059c0| 63 75 74 65 64 20 62 79 | 20 61 6e 20 61 70 70 6c |cuted by| an appl|
|000059d0| 69 63 61 74 69 6f 6e 20 | 66 72 6f 6d 20 69 6e 74 |ication |from int|
|000059e0| 65 72 66 65 72 69 6e 67 | 20 77 69 74 68 20 74 68 |erfering| with th|
|000059f0| 65 20 64 72 69 76 65 72 | d5 73 20 67 65 6e 65 72 |e driver|.s gener|
|00005a00| 61 74 65 64 20 63 6f 64 | 65 2e 0d 53 6f 6d 65 20 |ated cod|e..Some |
|00005a10| 61 70 70 6c 69 63 61 74 | 69 6f 6e 73 20 75 73 65 |applicat|ions use|
|00005a20| 20 74 68 65 20 70 69 63 | 74 75 72 65 20 63 6f 6d | the pic|ture com|
|00005a30| 6d 65 6e 74 20 50 6f 73 | 74 53 63 72 69 70 74 42 |ment Pos|tScriptB|
|00005a40| 65 67 69 6e 4e 6f 53 61 | 76 65 20 69 6e 20 6f 72 |eginNoSa|ve in or|
|00005a50| 64 65 72 20 74 6f 20 65 | 6d 69 74 20 50 6f 73 74 |der to e|mit Post|
|00005a60| 53 63 72 69 70 74 20 6c | 61 6e 67 75 61 67 65 20 |Script l|anguage |
|00005a70| 63 6f 64 65 20 77 69 74 | 68 6f 75 74 20 74 68 65 |code wit|hout the|
|00005a80| 20 65 6e 63 6c 6f 73 69 | 6e 67 20 64 72 69 76 65 | enclosi|ng drive|
|00005a90| 72 20 73 61 76 65 2f 72 | 65 73 74 6f 72 65 2e 20 |r save/r|estore. |
|00005aa0| 54 68 69 73 20 61 6c 6c | 6f 77 73 20 74 68 65 20 |This all|ows the |
|00005ab0| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 74 6f 20 63 |applicat|ion to c|
|00005ac0| 68 61 6e 67 65 20 74 68 | 65 20 73 74 61 74 65 20 |hange th|e state |
|00005ad0| 6f 66 20 74 68 65 20 50 | 6f 73 74 53 63 72 69 70 |of the P|ostScrip|
|00005ae0| 74 20 69 6e 74 65 72 70 | 72 65 74 65 72 20 69 6e |t interp|reter in|
|00005af0| 20 61 20 77 61 79 20 74 | 68 61 74 20 70 65 72 73 | a way t|hat pers|
|00005b00| 69 73 74 73 20 62 65 79 | 6f 6e 64 20 74 68 65 20 |ists bey|ond the |
|00005b10| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 67 65 6e 65 |applicat|ion gene|
|00005b20| 72 61 74 65 64 20 50 6f | 73 74 53 63 72 69 70 74 |rated Po|stScript|
|00005b30| 20 65 78 65 63 75 74 69 | 6f 6e 2e 20 55 6e 66 6f | executi|on. Unfo|
|00005b40| 72 74 75 6e 61 74 65 6c | 79 20 74 68 65 20 75 73 |rtunatel|y the us|
|00005b50| 65 20 6f 66 20 74 68 69 | 73 20 70 69 63 74 75 72 |e of thi|s pictur|
|00005b60| 65 20 63 6f 6d 6d 65 6e | 74 20 61 6c 6c 6f 77 73 |e commen|t allows|
|00005b70| 20 61 6e 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 | an appl|ication |
|00005b80| 74 6f 20 69 6e 74 65 72 | 66 65 72 65 20 77 69 74 |to inter|fere wit|
|00005b90| 68 20 74 68 65 20 64 72 | 69 76 65 72 20 61 6e 64 |h the dr|iver and|
|00005ba0| 20 63 61 75 73 65 20 69 | 74 20 74 6f 20 65 78 65 | cause i|t to exe|
|00005bb0| 63 75 74 65 20 75 6e 64 | 65 72 20 63 69 72 63 75 |cute und|er circu|
|00005bc0| 6d 73 74 61 6e 63 65 73 | 20 62 65 79 6f 6e 64 20 |mstances| beyond |
|00005bd0| 69 74 73 20 63 6f 6e 74 | 72 6f 6c 2e 20 41 64 64 |its cont|rol. Add|
|00005be0| 69 74 69 6f 6e 61 6c 6c | 79 2c 20 63 68 61 6e 67 |itionall|y, chang|
|00005bf0| 65 73 20 74 6f 20 74 68 | 65 20 67 72 61 70 68 69 |es to th|e graphi|
|00005c00| 63 73 20 73 74 61 74 65 | 20 69 6e 74 65 6e 74 69 |cs state| intenti|
|00005c10| 6f 6e 61 6c 6c 79 20 64 | 6f 6e 65 20 62 79 20 61 |onally d|one by a|
|00005c20| 6e 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 6d 61 |n applic|ation ma|
|00005c30| 79 20 62 65 20 75 6e 64 | 6f 6e 65 20 62 79 20 61 |y be und|one by a|
|00005c40| 20 64 72 69 76 65 72 20 | 67 65 6e 65 72 61 74 65 | driver |generate|
|00005c50| 64 20 67 72 65 73 74 6f | 72 65 2e 20 4f 6e 65 20 |d gresto|re. One |
|00005c60| 65 78 61 6d 70 6c 65 20 | 77 68 65 6e 20 74 68 69 |example |when thi|
|00005c70| 73 20 63 61 6e 20 68 61 | 70 70 65 6e 20 69 73 20 |s can ha|ppen is |
|00005c80| 77 68 65 6e 20 74 68 65 | 20 64 72 69 76 65 72 20 |when the| driver |
|00005c90| 6d 75 73 74 20 63 68 61 | 6e 67 65 20 74 68 65 20 |must cha|nge the |
|00005ca0| 63 6c 69 70 70 69 6e 67 | 20 72 65 63 74 61 6e 67 |clipping| rectang|
|00005cb0| 6c 65 2e 20 49 66 20 79 | 6f 75 72 20 61 70 70 6c |le. If y|our appl|
|00005cc0| 69 63 61 74 69 6f 6e 20 | 75 73 65 73 20 50 6f 73 |ication |uses Pos|
|00005cd0| 74 53 63 72 69 70 74 42 | 65 67 69 6e 4e 6f 53 61 |tScriptB|eginNoSa|
|00005ce0| 76 65 20 79 6f 75 20 73 | 68 6f 75 6c 64 20 63 61 |ve you s|hould ca|
|00005cf0| 72 65 66 75 6c 6c 79 20 | 65 78 61 6d 69 6e 65 20 |refully |examine |
|00005d00| 74 68 65 20 72 65 73 75 | 6c 74 73 20 79 6f 75 20 |the resu|lts you |
|00005d10| 6f 62 74 61 69 6e 20 77 | 69 74 68 20 50 53 57 72 |obtain w|ith PSWr|
|00005d20| 69 74 65 72 2e 20 55 73 | 65 20 6f 66 20 74 68 69 |iter. Us|e of thi|
|00005d30| 73 20 63 6f 6e 73 74 72 | 75 63 74 20 63 61 6e 20 |s constr|uct can |
|00005d40| 6c 65 61 64 20 74 6f 20 | 69 6e 63 6f 72 72 65 63 |lead to |incorrec|
|00005d50| 74 20 63 6c 69 70 70 69 | 6e 67 2c 20 69 6e 63 6f |t clippi|ng, inco|
|00005d60| 72 72 65 63 74 20 63 6f | 6c 6f 72 73 2c 20 61 6e |rrect co|lors, an|
|00005d70| 64 20 70 6f 73 73 69 62 | 6c 79 20 50 6f 73 74 53 |d possib|ly PostS|
|00005d80| 63 72 69 70 74 20 6c 61 | 6e 67 75 61 67 65 20 65 |cript la|nguage e|
|00005d90| 72 72 6f 72 73 2e 20 49 | 74 20 69 73 20 73 74 72 |rrors. I|t is str|
|00005da0| 6f 6e 67 6c 79 20 72 65 | 63 6f 6d 6d 65 6e 64 65 |ongly re|commende|
|00005db0| 64 20 74 68 61 74 20 74 | 68 65 20 50 6f 73 74 53 |d that t|he PostS|
|00005dc0| 63 72 69 70 74 42 65 67 | 69 6e 4e 6f 53 61 76 65 |criptBeg|inNoSave|
|00005dd0| 20 50 69 63 43 6f 6d 6d | 65 6e 74 20 62 65 20 61 | PicComm|ent be a|
|00005de0| 76 6f 69 64 65 64 2e 0d | 41 6e 20 65 78 61 6d 70 |voided..|An examp|
|00005df0| 6c 65 20 6f 66 20 61 6e | 20 61 70 70 6c 69 63 61 |le of an| applica|
|00005e00| 74 69 6f 6e d5 73 20 75 | 73 65 20 6f 66 20 50 6f |tion.s u|se of Po|
|00005e10| 73 74 53 63 72 69 70 74 | 42 65 67 69 6e 4e 6f 53 |stScript|BeginNoS|
|00005e20| 61 76 65 20 69 73 20 61 | 6e 20 61 70 70 6c 69 63 |ave is a|n applic|
|00005e30| 61 74 69 6f 6e 20 77 68 | 69 63 68 20 73 65 74 73 |ation wh|ich sets|
|00005e40| 20 74 68 65 20 50 6f 73 | 74 53 63 72 69 70 74 20 | the Pos|tScript |
|00005e50| 6c 61 6e 67 75 61 67 65 | 20 64 72 61 77 69 6e 67 |language| drawing|
|00005e60| 20 63 6f 6c 6f 72 20 66 | 6f 72 20 61 6e 20 6f 62 | color f|or an ob|
|00005e70| 6a 65 63 74 20 77 68 69 | 63 68 20 69 73 20 74 6f |ject whi|ch is to|
|00005e80| 20 62 65 20 64 72 61 77 | 6e 20 62 79 20 51 75 69 | be draw|n by Qui|
|00005e90| 63 6b 44 72 61 77 2e 20 | 53 6f 6d 65 20 61 70 70 |ckDraw. |Some app|
|00005ea0| 6c 69 63 61 74 69 6f 6e | 73 20 64 6f 20 74 68 69 |lication|s do thi|
|00005eb0| 73 20 74 6f 20 61 6c 6c | 6f 77 20 63 6f 6c 6f 72 |s to all|ow color|
|00005ec0| 20 64 72 61 77 69 6e 67 | 20 6f 6e 20 61 20 6d 61 | drawing| on a ma|
|00005ed0| 63 68 69 6e 65 20 77 68 | 69 63 68 20 64 6f 65 73 |chine wh|ich does|
|00005ee0| 20 6e 6f 74 20 68 61 76 | 65 20 43 6f 6c 6f 72 20 | not hav|e Color |
|00005ef0| 51 75 69 63 6b 44 72 61 | 77 20 6f 72 20 74 6f 20 |QuickDra|w or to |
|00005f00| 61 6c 6c 6f 77 20 73 70 | 65 63 69 66 69 63 61 74 |allow sp|ecificat|
|00005f10| 69 6f 6e 20 6f 66 20 63 | 6f 6c 6f 72 73 20 69 6e |ion of c|olors in|
|00005f20| 20 61 20 6d 61 6e 6e 65 | 72 20 6e 6f 74 20 61 6c | a manne|r not al|
|00005f30| 6c 6f 77 65 64 20 62 79 | 20 51 75 69 63 6b 44 72 |lowed by| QuickDr|
|00005f40| 61 77 20 28 73 75 63 68 | 20 61 73 20 61 20 43 4d |aw (such| as a CM|
|00005f50| 59 4b 20 63 6f 6c 6f 72 | 20 6d 6f 64 65 6c 29 2e |YK color| model).|
|00005f60| 20 0d 54 68 69 73 20 63 | 61 6e 20 63 61 75 73 65 | .This c|an cause|
|00005f70| 20 74 77 6f 20 64 69 66 | 66 65 72 65 6e 74 20 70 | two dif|ferent p|
|00005f80| 72 6f 62 6c 65 6d 73 2e | 20 57 68 65 6e 20 64 72 |roblems.| When dr|
|00005f90| 61 77 69 6e 67 20 77 69 | 74 68 20 63 61 6c 69 62 |awing wi|th calib|
|00005fa0| 72 61 74 65 64 20 63 6f | 6c 6f 72 2c 20 50 53 57 |rated co|lor, PSW|
|00005fb0| 72 69 74 65 72 20 72 65 | 6c 69 65 73 20 6f 6e 20 |riter re|lies on |
|00005fc0| 74 68 65 20 63 6f 6c 6f | 72 20 73 70 61 63 65 20 |the colo|r space |
|00005fd0| 69 6e 20 74 68 65 20 70 | 72 69 6e 74 65 72 20 62 |in the p|rinter b|
|00005fe0| 65 69 6e 67 20 73 65 74 | 20 74 6f 20 69 74 73 20 |eing set| to its |
|00005ff0| 6f 77 6e 20 73 70 65 63 | 69 61 6c 20 63 6f 6c 6f |own spec|ial colo|
|00006000| 72 20 73 70 61 63 65 20 | 28 61 20 50 6f 73 74 53 |r space |(a PostS|
|00006010| 63 72 69 70 74 20 4c 65 | 76 65 6c 20 32 20 66 65 |cript Le|vel 2 fe|
|00006020| 61 74 75 72 65 29 2e 20 | 45 78 65 63 75 74 69 6f |ature). |Executio|
|00006030| 6e 20 6f 66 20 73 65 74 | 67 72 61 79 2c 20 73 65 |n of set|gray, se|
|00006040| 74 72 67 62 63 6f 6c 6f | 72 2c 20 61 6e 64 20 73 |trgbcolo|r, and s|
|00006050| 65 74 63 6d 79 6b 63 6f | 6c 6f 72 20 63 68 61 6e |etcmykco|lor chan|
|00006060| 67 65 73 20 74 68 65 20 | 63 6f 6c 6f 72 20 73 70 |ges the |color sp|
|00006070| 61 63 65 20 66 72 6f 6d | 20 74 68 69 73 20 73 70 |ace from| this sp|
|00006080| 65 63 69 61 6c 20 63 6f | 6c 6f 72 20 73 70 61 63 |ecial co|lor spac|
|00006090| 65 2e 20 55 73 65 20 6f | 66 20 74 68 65 73 65 20 |e. Use o|f these |
|000060a0| 6f 70 65 72 61 74 6f 72 | 73 20 69 6e 73 69 64 65 |operator|s inside|
|000060b0| 20 6f 66 20 50 6f 73 74 | 53 63 72 69 70 74 42 65 | of Post|ScriptBe|
|000060c0| 67 69 6e 2f 45 6e 64 20 | 77 6f 72 6b 73 20 71 75 |gin/End |works qu|
|000060d0| 69 74 65 20 77 65 6c 6c | 2e 20 48 6f 77 65 76 65 |ite well|. Howeve|
|000060e0| 72 2c 20 69 66 20 61 6e | 20 61 70 70 6c 69 63 61 |r, if an| applica|
|000060f0| 74 69 6f 6e 20 65 6d 69 | 74 73 20 74 68 69 73 20 |tion emi|ts this |
|00006100| 50 6f 73 74 53 63 72 69 | 70 74 20 63 6f 64 65 20 |PostScri|pt code |
|00006110| 6f 75 74 73 69 64 65 20 | 6f 66 20 74 68 65 20 64 |outside |of the d|
|00006120| 72 69 76 65 72 20 73 61 | 76 65 2f 72 65 73 74 6f |river sa|ve/resto|
|00006130| 72 65 20 69 74 20 63 68 | 61 6e 67 65 73 20 74 68 |re it ch|anges th|
|00006140| 65 20 50 6f 73 74 53 63 | 72 69 70 74 20 63 6f 6c |e PostSc|ript col|
|00006150| 6f 72 73 70 61 63 65 20 | 63 75 72 72 65 6e 74 6c |orspace |currentl|
|00006160| 79 20 69 6e 20 65 66 66 | 65 63 74 20 64 75 72 69 |y in eff|ect duri|
|00006170| 6e 67 20 74 68 65 20 65 | 78 65 63 75 74 69 6f 6e |ng the e|xecution|
|00006180| 20 6f 66 20 74 68 65 20 | 64 72 69 76 65 72 20 67 | of the |driver g|
|00006190| 65 6e 65 72 61 74 65 64 | 20 50 6f 73 74 53 63 72 |enerated| PostScr|
|000061a0| 69 70 74 20 6c 61 6e 67 | 75 61 67 65 20 63 6f 64 |ipt lang|uage cod|
|000061b0| 65 2e 20 54 68 69 73 20 | 77 69 6c 6c 20 6c 69 6b |e. This |will lik|
|000061c0| 65 6c 79 20 63 61 75 73 | 65 20 50 6f 73 74 53 63 |ely caus|e PostSc|
|000061d0| 72 69 70 74 20 65 72 72 | 6f 72 73 20 64 75 72 69 |ript err|ors duri|
|000061e0| 6e 67 20 70 72 69 6e 74 | 69 6e 67 2e 20 20 41 70 |ng print|ing. Ap|
|000061f0| 70 6c 69 63 61 74 69 6f | 6e 73 20 77 68 69 63 68 |plicatio|ns which|
|00006200| 20 65 6d 69 74 20 73 75 | 63 68 20 63 6f 64 65 20 | emit su|ch code |
|00006210| 6f 75 74 73 69 64 65 20 | 74 68 65 20 64 72 69 76 |outside |the driv|
|00006220| 65 72 20 73 61 76 65 2f | 72 65 73 74 6f 72 65 20 |er save/|restore |
|00006230| 77 69 6c 6c 20 6d 6f 73 | 74 20 6c 69 6b 65 6c 79 |will mos|t likely|
|00006240| 20 6e 6f 74 20 62 65 20 | 61 62 6c 65 20 74 6f 20 | not be |able to |
|00006250| 70 72 69 6e 74 20 75 73 | 69 6e 67 20 74 68 65 20 |print us|ing the |
|00006260| 43 61 6c 69 62 72 61 74 | 65 64 20 43 6f 6c 6f 72 |Calibrat|ed Color|
|00006270| 20 66 65 61 74 75 72 65 | 20 61 76 61 69 6c 61 62 | feature| availab|
|00006280| 6c 65 20 69 6e 20 74 68 | 65 20 70 72 69 6e 74 20 |le in th|e print |
|00006290| 6f 70 74 69 6f 6e 73 20 | 64 69 61 6c 6f 67 2e 0d |options |dialog..|
|000062a0| 41 20 73 65 63 6f 6e 64 | 20 70 72 6f 62 6c 65 6d |A second| problem|
|000062b0| 20 77 68 69 63 68 20 6f | 63 63 75 72 73 20 69 73 | which o|ccurs is|
|000062c0| 20 61 20 73 79 6e 63 68 | 72 6f 6e 69 7a 61 74 69 | a synch|ronizati|
|000062d0| 6f 6e 20 70 72 6f 62 6c | 65 6d 20 62 65 74 77 65 |on probl|em betwe|
|000062e0| 65 6e 20 74 68 65 20 61 | 70 70 6c 69 63 61 74 69 |en the a|pplicati|
|000062f0| 6f 6e d5 73 20 50 6f 73 | 74 53 63 72 69 70 74 20 |on.s Pos|tScript |
|00006300| 63 6f 64 65 20 61 6e 64 | 20 74 68 65 20 64 72 69 |code and| the dri|
|00006310| 76 65 72 d5 73 20 6d 61 | 69 6e 74 65 6e 61 6e 63 |ver.s ma|intenanc|
|00006320| 65 20 6f 66 20 74 68 65 | 20 63 6c 69 70 20 69 6e |e of the| clip in|
|00006330| 20 74 68 65 20 67 72 61 | 70 68 69 63 73 20 73 74 | the gra|phics st|
|00006340| 61 74 65 2e 20 49 66 20 | 61 6e 20 61 70 70 6c 69 |ate. If |an appli|
|00006350| 63 61 74 69 6f 6e 20 67 | 65 6e 65 72 61 74 65 73 |cation g|enerates|
|00006360| 20 50 6f 73 74 53 63 72 | 69 70 74 20 6c 61 6e 67 | PostScr|ipt lang|
|00006370| 75 61 67 65 20 63 6f 64 | 65 20 74 6f 20 73 65 74 |uage cod|e to set|
|00006380| 20 74 68 65 20 63 6f 6c | 6f 72 20 61 66 74 65 72 | the col|or after|
|00006390| 20 74 68 65 20 6c 61 73 | 74 20 64 72 69 76 65 72 | the las|t driver|
|000063a0| 20 67 73 61 76 65 2c 20 | 74 68 65 6e 20 61 20 67 | gsave, |then a g|
|000063b0| 72 65 73 74 6f 72 65 20 | 65 6d 69 74 74 65 64 20 |restore |emitted |
|000063c0| 62 79 20 74 68 65 20 64 | 72 69 76 65 72 20 77 69 |by the d|river wi|
|000063d0| 6c 6c 20 75 6e 64 6f 20 | 74 68 65 20 63 68 61 6e |ll undo |the chan|
|000063e0| 67 65 20 74 6f 20 74 68 | 65 20 63 6f 6c 6f 72 20 |ge to th|e color |
|000063f0| 73 65 74 20 62 79 20 74 | 68 65 20 61 70 70 6c 69 |set by t|he appli|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.